I\'m using mockito in a junit test. How do you make an exception happen and then assert that it has (generic pseudo-code)
Unrelated to mockito, one can catch the exception and assert its properties. To verify that the exception did happen, assert a false condition within the try block after the statement that throws the exception.