title: powermockito - testing exception handling
body: <p>Testing a snip:</p>
  
  <pre><code>void somefunction() {
    try {
      aMock.doSomething();
      bMock.another();
    } finally {
      cMock.cleanup();
    }
  }
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>@Test(expected = Exception.class)
  void sometest() {
    ... setup various mocks ...
  
    PowerMockito.doThrow(new Exception("abc")).when(aMock).doSomething();
  
    outerMock.somefunction();
  
    // ** THIS SHOULD FAIL
    verify(bMock).another();
  
    // ** THIS SHOULD FAIL TOO
    verify(cMock, never()).cleanup()
  }
  </code></pre>
  
  <p>When I run this it passes. Why? Does the throw Exception (and handling in @Test) trump the <strong>verify</strong> statements?</p>
  
  <p>If so - is there some way to test that the <strong>finally</strong> clause was executed?</p>