There is an `Assert::exception()` for this purpose.