title: Can Mockito capture arguments of a method called multiple times?
body: <p>I have a method that gets called twice, and I want to capture the argument of the second method call.</p>
  
  <p>Here's what I've tried:</p>
  
  <pre><code>ArgumentCaptor&lt;Foo&gt; firstFooCaptor = ArgumentCaptor.forClass(Foo.class);
  ArgumentCaptor&lt;Foo&gt; secondFooCaptor = ArgumentCaptor.forClass(Foo.class);
  verify(mockBar).doSomething(firstFooCaptor.capture());
  verify(mockBar).doSomething(secondFooCaptor.capture());
  // then do some assertions on secondFooCaptor.getValue()
  </code></pre>
  
  <p>But I get a <code>TooManyActualInvocations</code> Exception, as Mockito thinks that <code>doSomething</code> should only be called once.</p>
  
  <p>How can I verify the argument of the second call of <code>doSomething</code>?</p>