I\'m writing unit tests using Mockito and I\'m having problems mocking the injected classes. The problem is that two of the injected classes are the same type, and only diff
Just confirmed what Splonk pointed out and it works that way in Mockito 1.9.5, as soon as I removed one of the mocked classes, it failed.
So, in your case, make sure you have both of the mocked classes with the same name as in the class in your test:
@Mock
private SomeClass someClassA;
@Mock
private SomeClass someClassB;