I'm trying to mock a specific instance, but doesn't seem to work. E.g.:
val myData = MyData(min = 3, max = 4)
val myMock = mockk<SomeObject>.apply {
every { someFunc(myData) } returns SOME_ID
}
Inside my SomeObject, it actually creates a MyData with the values 3 and 4, so it's not the exact same instance. So if I change myData to any() in the mock, then it works. Essentially, how do I check against an object that would be equal, not the same instance?