title: Mockito Matcher parameters showing as undefined
body: <p>I am trying to Mock a method contained in the Main class of an application. I'd like to test that when all parameters are submitted successfully, the application calls the correct method, uploadFiles. The when - thenReturn pair is shown below:</p>
  
  <pre><code>NrClient nrClient = (NrClient)Mockito.mock(NrClient.class);
  Mockito.when(nrClient.uploadFiles("DF49ACBC8", anyList(), "dl")).thenReturn("");
  </code></pre>
  
  <p>This shows as a runtime exception: "The method anyString() is undefined for the type MainTest."
  I have the imports:</p>
  
  <pre><code>import org.mockito.Mockito;
  import org.mockito.Matchers;
  </code></pre>
  
  <p>So why would this method be undefined? Is there an issue in my implementation?</p>
  
  <p>I have also tried anyString() and anyInt() with the same result.</p>