I have just started to use scalatest for java code and in that we are using easymock to create mocks .
I have a situation where I want to do something like this.
expecting{
objA.function(x$1, x$2).andReturn(objectB)
}
For the place holder x$1,x$2 I want to call the function passing similar to something like anyObject()
in java .
Kindly suggest something that could replace the placeholder.