Remove the try/catch and add the expected exception to a @Test annotation