title: Mockito Matchers any Map
body: <p>How can I use any map in mockito? I tried with following codes</p>
  
  <pre><code>when(mockedService.patch("1", Matchers.&lt;Map&lt;String, Object&gt;&gt;any())).thenReturn(object);
  </code></pre>
  
  <p>and with:</p>
  
  <pre><code>when(mockedService.patch("1", anyMap())).thenReturn(object);
  </code></pre>
  
  <p>But it returns:</p>
  
  <pre><code>org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
  Invalid use of argument matchers!
  2 matchers expected, 1 recorded.
  </code></pre>
  
  <p>It works only when I put <code>any(String.class)</code>:</p>
  
  <pre><code>when(mockedService.patch(any(String.class), Matchers.&lt;Map&lt;String, Object&gt;&gt;any())).thenReturn(object);
  </code></pre>
  
  <p>But I want to have option of puting actual values instead of any String</p>