Support @Test(expected = Exception.class)