title: How to program behavior of a void method with Mockito?
body: <p>I have a Controller class with something like this</p>
  
  <pre><code>public void create(int a, int b){
       //do something
  }
  </code></pre>
  
  <p>Now i want to mock the Controller class and call a certain method for exmaple doCustomCreate() when the create Method of my mocked Controller class is called.</p>
  
  <p>My test would ´look something like this</p>
  
  <pre><code>Controller ctrlMock = mock(Controller.class);
  //PseudoCode: when(isCalled(ctrlMock.create(a,b)).doCall(doCustomCreate());
  </code></pre>
  
  <p>I only read about mocking methods with input and return values, so i wondered if this is possible?</p>
  
  <p>Edit: Updated the Question</p>