title: Mockito. Verify method arguments
body: <p>I've googled about this, but didn't find anything relevant. I've got something like this:</p>
  
  <pre><code>Object obj = getObject();
  Mockeable mock= Mockito.mock(Mockeable.class);
  Mockito.when(mock.mymethod(obj )).thenReturn(null);
  
  Testeable testableObj = new Testeable();
  testableObj.setMockeable(mock);
  command.runtestmethod();
  </code></pre>
  
  <p>Now, I want to verify that <code>mymethod(Object o)</code>, which is called inside <code>runtestmethod()</code>, was called with the Object <code>o</code>, not any other. But I always pass the test, whatever I put on the verification, for example, with:</p>
  
  <pre><code>Mockito.verify(mock.mymethod(Mockito.eq(obj)));
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Mockito.verify(mock.mymethod(Mockito.eq(null)));
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Mockito.verify(mock.mymethod(Mockito.eq("something_else")));
  </code></pre>
  
  <p>I always pass the test. How can I accomplish that verification (if possible)? </p>
  
  <p>Thank you.</p>