I\'m using mockito with scalatest. I have following problem when using matcher with value class.
import org.scalat
The newest version of mockito-scala
(0.0.9) supports this out of the box, you can do something like
when(myObj.myMethod(anyVal[MyValueClass]) thenReturn "something"
myObj.myMethod(MyValueClass(456)) shouldBe "something"
verify(myObj).myMethod(eqToVal[MyValueClass](456))
Disclaimer: I'm a developer of that library