title: Mockito issue - when(java.lang.Void) in Stubber cannot be applied to void
body: <p>I can't figure out why the <code>doNothing</code> isn't working for this? Any ideas?</p>
  
  <pre><code>@Captor
  ArgumentCaptor&lt;GenericClass&lt;someOtherClass&gt;&gt; captor;
  ...
  Mockito.doNothing().when(mockObject.methodToStub(captor.capture()));
  </code></pre>
  
  <p>The error is:</p>
  
  <blockquote>
    <p><code>Exception: when(java.lang.Void) in Stubber cannot be applied to void</code></p>
  </blockquote>