Move this above the call to `expectedException.expect`