question: public static void assertException ( RuntimeException exception , Runnable expression ) { if ( verbose ) { log ( "assertException(" + exception + ", " + expression + ")" ) ; } try { expression . run ( ) ; } catch ( RuntimeException failure ) { if ( exception . getClass ( ) != failure . getClass ( ) ) { TestUtils . fail ( ) ; } return ; } TestUtils . fail ( ) ; }
target:  Asserts that a certain exception is raised