/** * Exits the current JUnit test context. * * @throws ClassCastException if the current context is not a JUnit context. */ public static void exit() { Context.exit(JUnitContext.class); }