question: void verifyExceptionCaptured ( Class < ? extends Throwable > expectedExceptionClass ) { assertTrue ( "Excpected exception not thrown" , exceptionEventCapture . hasCaptured ( ) ) ; Throwable caughtEx = exceptionEventCapture . getValue ( ) ; assertEquals ( expectedExceptionClass , caughtEx . getClass ( ) ) ; exceptionEventCapture . reset ( ) ; }
target:  Verify that the given exception event capture (as returned by getAndInitExceptionCapture) has thrown an exception of the given expectedExceptionClass. Resets the capture