### Question:
ClassLoaderClassPathRoot implements ClasspathRoot { public InputStream getData(final ElementName name) throws IOException { return this.loader.getResourceAsStream(name.asInternalName() + ".class"); } ClassLoaderClassPathRoot(final ClassLoader loader); Collection<ElementName> classNames(); InputStream getData(final ElementName name); InputStream getResource(final String name);  }### Answer:
@Test public void shouldReturnsBytesForClassesVisibleToParentLoader() throws Exception { assertThat(this.testee.getData(ElementName.fromClass(ClassLoaderClassPathRootTest.class))).isNotNull(); assertThat(Test.class.getName()).isNotNull(); }
@Test public void testReturnsNullForClassesNotVisibleToParentLoader() throws Exception { assertThat(this.testee.getData(ElementName.fromString("FooFoo"))).isNull(); }