You should test the particular type of the exception.