Is there a way to distinguish between generic classes in mockito for mappings?
The method call is as follow (except different logic than returning true.:
userWrapper.wrapCall( new Client<Boolean, User>(){
   @override 
   public Boolean run(){
         return true
   }
 }
For example
    Client<Boolean, User> c1 = Mockito.any();
    Client<Account, User> c2 = Mockito.any();
    when (userWrapper.wrapCall( c1 )).thenReturn( true );
    when (userWrapper.wrapCall( c2 )).thenReturn( new Account() );
However this fails, as it seems that it just Maps callableclient as opposed to taking into account the Generics. I tried using returnAnswer however, the .getArgs only returns the userwrapper, not the c1/c2 passed into the method.
 
     
    