title: Mockito Verify: Verified during verify() than during mocked method call
body: <p>I call a method performAction with list of objects and verify the same. After this method is called, I modify some of the "objects".</p>
  
  <p>Mockito verify fails saying that arguments don't match (showing modified objects) but I can see in debug mode that objects were correct as needed.</p>
  
  <p>Ideally, this should not happen as verify should be applied on the basis of when method was actually called. Does verify apply during verify call in test method than at the time of mocked method call?</p>
  
  <p>Test Class</p>
  
  <pre><code>@Test
  public void test() throws Exception {
      List&lt;ABC&gt; objects = new ArrayList&lt;ABC&gt;();
      //populate objects.
      activity.performActions(objects);               
      verify(activity, times(1)).doActivity(objects);
  }
  </code></pre>
  
  <p>Method to test:</p>
  
  <pre><code>public void performActions(List&lt;ABC&gt; objects) {
  
      activity.doActivity(urlObjects2PerformAction);
      //Modify objects                
  
  }
  </code></pre>
  
  <p>Error I am getting is as follows (this is for complete code. I have given smallest possible snippet):</p>
  
  <pre><code>Argument(s) are different! Wanted:
  activity.doActivity(
  .......
  ......
  </code></pre>