Catch the correct exception so the test doesn't fail