title: Capture Templated Argument with Mockito
body: <p>I wish to do the following:</p>
  
  <pre><code>when(response.readEntity(entityTypeCaptor)).thenReturn(100);
  </code></pre>
  
  <p>where <code>readEntity</code> is:</p>
  
  <pre><code>public abstract &lt;T&gt; T readEntity(Class&lt;T&gt; entityType);
  </code></pre>
  
  <p>and where the code I am testing is as follows:</p>
  
  <pre><code> int number = response.readEntity(Integer.class);
  </code></pre>
  
  <p>What type should I declare entityTypeCaptor with?</p>