title: Mockito - InvalidUseOfMatchersException
body: <p>I have been trying to debug this piece of code for a while now but still no luck. I continues to throw "InvalidUseOfMatchersException" specifically for this code:</p>
  
  <p>For the set up:</p>
  
  <pre><code>        service = mock(Service.class);
          newRequest = mock(Request.class);
          when(service.newRequest(anyString(), anyString(), anyString())).thenReturn(
              newRequest);
  </code></pre>
  
  <p>And in the class that service is used in:</p>
  
  <pre><code> Request newRequest = Service.newRequest(
              mId, "mp", itemID);
  </code></pre>
  
  <p>I am assuming that it fails because I pass in 3 "anyString()" in the when...thenReturn clause but it could possibly be that it is failing on the hardcoded "mp". So I tried to replace the when clause with this: </p>
  
  <pre><code>when(service.newRequest(anyString(), eq("mp"), anyString())).thenReturn(
              newRequest);
  </code></pre>
  
  <p>But still receive the InvalidUseOfMatchersException.</p>
  
  <p>Am I missing something about how mockito is supposed to work for this?</p>
  
  <p>full stack:</p>
  
  <pre><code>    org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
  Invalid use of argument matchers!
  3 matchers expected, 2 recorded.
  This exception may occur if matchers are combined with raw values:
      //incorrect:
      someMethod(anyObject(), "raw String");
  When using matchers, all arguments have to be provided by matchers.
  For example:
      //correct:
      someMethod(anyObject(), eq("String by matcher"));
  
  For more info see javadoc for Matchers class.
      at ServiceFacade.getSimilarities(ServiceFacade.java:29)
      at FacadeTest.getSimilarities(FacadeTest.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodImpl.invoke(DelegatingMethodImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
  </code></pre>