ExceptionConverter { public static <T> T safe(Callable<T> callable, String message) { try { return callable.call(); } catch (Exception e) { throw new RuntimeException(message, e); } } ExceptionConverter(); static T safe(Callable<T> callable, String message);  }
@Test(expected = RuntimeException.class) public void safeCompute() throws Exception { ExceptionConverter.safe( () -> { throw new NullPointerException(); }, "Ignored"); }