The method play(Class<T>) is not applicable for the arguments (Class)
<p>I have this code:</p>

<pre><code>when(mockedObject.play(any(Class.class))).thenReturn(object);
</code></pre>

<p>The header of the method <code>play</code> is like this:</p>

<pre><code>public Object play(Class&lt;T&gt; classz)
</code></pre>

<p>When I run my test I get this error:</p>

<blockquote>
  <p>The method <code>play(Class&lt;T&gt;)</code> is not applicable for the arguments <code>(Class)</code></p>
</blockquote>

<p>How should I fix this?</p>