title: why my unit test failing after adding a parameter?
body: <p>Here is my code when working fine</p>
  
  <pre><code>verify(loginService).getUser(eq(loginName));
  </code></pre>
  
  <p>here it is failing..</p>
  
  <pre><code>@Test
  public void test_getUserFlow4() {
      ...
      LoginModel loginModelReturned = loginService.getUser(loginName, null);
      assertGeneralConditions(loginModelReturned);
      ...
  }
  
  private void assertGeneralConditions(LoginModel loginModelReturned){
      verify(loginService).getUser(eq(loginName), null);  //test failed here other lines not executed
      ....
      ....
  }
  </code></pre>
  
  <p>here is the getUser method</p>
  
  <pre><code>public LoginModel getUser(String loginName, String userAgent) {
      // userAgent is not being used anywhere
      ....
      return model;
  }
  </code></pre>
  
  <p>Exact Error:</p>
  
  <pre><code>org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
  Invalid use of argument matchers!
  2 matchers expected, 1 recorded:
  </code></pre>