Better to get a more exact exception type (not AssertionError independent of type of error).
AssertionError