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