title: Mockito exception in doThrow that looks correct
body: <p>I'm trying to mock a method to see if I handle an exception correctly. This is as far as I get.</p>
  
  <p>interface:</p>
  
  <pre><code>interface SampleManager {
      void deleteVariome(String specimenId, String analysisId) throws Exception;
      // ...
  }
  </code></pre>
  
  <p>unit test:</p>
  
  <pre><code>// ...
  SampleManger sampleManager = mock(SampleManager.class);
  
  // below is line 753
  doThrow(Exception.class).when(sampleManager).deleteVariome(sample1.getId(), analysisId);
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>org.mockito.exceptions.misusing.UnfinishedStubbingException: 
  Unfinished stubbing detected here:
  -&gt; at ...server.ArchiveManagerImplUTest.deleteVariomeFails(ArchiveManagerImplUTest.java:753)
  
  E.g. thenReturn() may be missing.
  Examples of correct stubbing:
      when(mock.isOk()).thenReturn(true);
      when(mock.isOk()).thenThrow(exception);
      doThrow(exception).when(mock).someVoidMethod(); &lt;-- this looks a log like what I did!
  
  Hints:
  
   1. missing thenReturn()
  
   2. you are trying to stub a final method, you naughty developer! &lt;-- I have a lot of other mocks of this interface in this test that work.
  </code></pre>