title: Springockito or Mockito matching generic classes passed in method
body: <p>Is there a way to distinguish between generic classes in mockito for mappings?</p>
  
  <p>The method call is as follow (except different logic than returning true.:</p>
  
  <pre><code>userWrapper.wrapCall( new Client&lt;Boolean, User&gt;(){
     @override 
     public Boolean run(){
           return true
     }
   }
  </code></pre>
  
  <p>For example</p>
  
  <pre><code>    Client&lt;Boolean, User&gt; c1 = Mockito.any();
      Client&lt;Account, User&gt; c2 = Mockito.any();
  
      when (userWrapper.wrapCall( c1 )).thenReturn( true );
      when (userWrapper.wrapCall( c2 )).thenReturn( new Account() );
  </code></pre>
  
  <p>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.</p>