BootstrapClassPredicate implements Predicate<String> { @Override public boolean test(String s) { try { this.classLoaderForBootstrapClasses.loadClass(s); return true; } catch (ClassNotFoundException | NoClassDefFoundError e) { return false; } } BootstrapClassPredicate(); @Override boolean test(String s);  }
@Test public void testBootstrapClass() { assertTrue(this.bootstrapClassPredicate.test("java.lang.String")); assertTrue(this.bootstrapClassPredicate.test("java.lang.Object")); assertTrue(this.bootstrapClassPredicate.test("java.lang.System")); }
@Test public void testNotBootstrapClass() { assertFalse(this.bootstrapClassPredicate.test(this.getClass().getName())); assertFalse(this.bootstrapClassPredicate.test("com.linkedin.cytodynamics.nucleus.BootstrapClassPredicate")); }