ExceptionFilters { public static Predicate<Throwable> markAllExceptions() { return new AnyThrowable(); } private  ExceptionFilters(); static Predicate<Throwable> markAllExceptions(); static Predicate<Throwable> markCheckedExceptions();  }
@Test public void testMarkAll() throws Exception { assertTrue(ExceptionFilters.markAllExceptions().test(new Throwable())); assertTrue(ExceptionFilters.markAllExceptions().test(new RuntimeException())); assertTrue(ExceptionFilters.markAllExceptions().test(new NullPointerException())); assertTrue(ExceptionFilters.markAllExceptions().test(new IllegalArgumentException())); assertTrue(ExceptionFilters.markAllExceptions().test(new Exception())); assertTrue(ExceptionFilters.markAllExceptions().test(new SQLException())); }