is it possible to pass the type of an interface with generics?
The interface:
public interface AsyncCallback
In my test me
I had to adopt the following mechamism to allow for generics:
import static org.mockito.Matchers.any; List list = any(); when(callMyMethod.getResult(list)).thenReturn(myResultString);
Hope this helps someone.