title: Mockito anyMapOf nested generics
body: <p>I am attempting to verify that a method with the following signature was called:</p>
  
  <pre><code>public void process(Map&lt;String, Set&lt;String&gt;&gt; data) {
    ...
  }
  </code></pre>
  
  <p>The nested parameterized Set is causing me difficulties.  I can get it to verify correctly with the any() matcher like so:</p>
  
  <pre><code>verify(dataProcessor).process(Matchers.&lt;Map&lt;String, Set&lt;String&gt;&gt;&gt; any());
  </code></pre>
  
  <p>As described in <a href="https://stackoverflow.com/questions/6175753/mockito-verifying-with-generic-parameters">Mockito: Verifying with generic parameters</a> although annoyingly it doesn't work if I do a direct static import of Matchers.any and call it as just:</p>
  
  <pre><code>verify(dataProcessor).process(&lt;Map&lt;String, Set&lt;String&gt;&gt;&gt; any())
  </code></pre>
  
  <p>But anyMapOf(clazz, clazz) seems the more appropriate matcher in this case.  Since you can't do Set.class I'm not sure how you would do this.  The following doesn't work because of the lack of generic:</p>
  
  <pre><code>verify(dataProcessor).process(anyMapOf(String.class, Set.class));
  </code></pre>
  
  <p>Is it possible to verify this situation with anyMapOf or should I stick with Matchers.&lt;>any()?</p>