Testing for an exception