When writing unit tests for a Java API there may be circumstances where you want to perform more detailed validation of an exception. I.e. more than is offered by the @t
i did something very simple
testBla(){ try { someFailingMethod() fail(); //method provided by junit } catch(Exception e) { //do nothing } }