I\'m trying to test some legacy code, using Mockito.
I want to stub a FooDao that is used in production as follows:
FooDao
foo = fooDao.getBar(
Use like this:
when( fooDao.getBar( Matchers.any() ) ).thenReturn(myFoo);
Before you need to import Mockito.Matchers
Mockito.Matchers