I'm a brazilian developer and this is my first post in the forum, so i apologize in advance for my bad english.
I've been using scalatest along with JMock and it's working quite well. I'm importing JMockCycle class the same way as the examples in the documentation:
val mockCollaborator = mock[Collaborator]
The problem is when i have to mock more then one instance of the same class inside the same test. In order to make this work in JMock, i've to use the Mockery.mock(Class clazz, String mockName).
The problem is that JMockCycle dont provide me any access to the method or any other method similar.
I've been looking in scalatest code, and it seems to me that should be something like that: