title: Verify mock invocation only in specific code block, igoring other calls
body: <p>I have this (simplified) service class:</p>
  
  <pre><code>public interface EventListener {
  
      void call();
  }
  
  public class MyService {
  
      private final EventListener eventListener;
  
      private final List&lt;String&gt; elements = new LinkedList&lt;&gt;();
  
      public MyService(EventListener eventListener) {
          this.eventListener = eventListener;
      }
  
      public void addElement(String element) {
          elements.add(element);
          eventListener.call();
      }
  
      public void removeElement(String element) {
          elements.remove(element);
          eventListener.call();
      }
  }
  </code></pre>
  
  <p>And this test method:</p>
  
  <pre><code>@Test
  public void remove_should_call_event_listener() {
      // arrange
      EventListener eventListener = Mockito.mock(EventListener.class);
      MyService myService = new MyService(eventListener);
      myService.addElement("dummy");
  
      // act
      myService.removeElement("dummy");
  
      // assert
      Mockito.verify(eventListener).call();
  }
  </code></pre>
  
  <p>How can I tell Mockito to ignore calls of <code>eventListener.call()</code> during "arrange" and verify only calls during "act"? I want to verify that <code>eventListener.call()</code> was called during <code>myService.removeElement(...)</code> and ignore all other calls.</p>