title: Java verify void method calls n times with Mockito
body: <p>I'm trying to verify that a (void) method is being called inside of a DAO - I'm using a commit point that sends a list of results up to that point, resets the list and continues.
   Say I have 4 things in the list and I have a commit point of 1, I would expect the "send" method to be called 4 times.
   I can verify that the method gets called once by writing</p>
  
  <p><code>Mockito.verify(mock).send()</code></p>
  
  <p>it passes.. but I want to verify the number of times it was called. I would think that</p>
  
  <p><code>Mockito.verify(mock.send(), times(4))</code></p>
  
  <p>would be sufficient, but it says the parameters are not correct for verify. </p>
  
  <p>Incidentally, if I change  <code>Mockito.verify(mock).send()</code> to  <code>Mockito.verify(mock.send())</code> or  <code>Mockito.verify((mock).send())</code> I get the same error. Thoughts on this?</p>