/** * This method throws the expected exception wrapped into the {@link Test} * annotation. * * @param test * with the expected exception */ public static void provoke(final Test test) { Class<? extends Throwable> expected = test.expected(); if ((expected != Test.None.class) && (expected != null)) { ExceptionThrower.provoke(expected); } }