title: Mockito.any() to match any instance of generics type T
body: <p>I'm trying to mock a void method to throw an exception every time. The method takes a <code>List&lt;SomeClass&gt;</code> as an argument. How to I pass its to <code>Mockito.any()</code>?</p>
  
  <pre><code>Mockito.doThrow(new Exception())
         .when(myClassInstanceSpy)
         .myVoidMethod(Mockito.any(List&lt;SomeClass&gt;.class)); // This fails!
  </code></pre>
  
  <hr>
  
  <p>Here's my class definition:</p>
  
  <pre><code>class MyClass {
      ... 
      public void myVoidMethod(List&lt;SomeClass&gt; scList) {
          // ...
      }
  }
  </code></pre>