Asserting a first thrown exception. Note: The method under test must be wrapped in a function.