ThrowableUtils { @SuppressWarnings("unchecked") public static <E extends Throwable> void throwAny(Throwable e) throws E { throw (E) e; } private  ThrowableUtils(); @SuppressWarnings("unchecked") static void throwAny(Throwable e);  }
@Test void throwAny() { Assertions.assertThrows(RuntimeException.class, () -> { ThrowableUtils.throwAny(new RuntimeException()); }); }