### Question:
ClassLoaderClassPathRoot implements ClasspathRoot { public InputStream getResource(final String name) throws IOException { return this.loader.getResourceAsStream(name); } ClassLoaderClassPathRoot(final ClassLoader loader); Collection<ElementName> classNames(); InputStream getData(final ElementName name); InputStream getResource(final String name);  }### Answer:
@Test public void testReturnsNullForResourcesNotVisibleToParentLoader() throws Exception { assertThat(this.testee.getResource("not defined")).isNull(); }
@Test public void testReturnsInputStreamForResourcesVisibleToParentLoader() throws Exception { assertThat(this.testee.getResource("aresource.txt")).isNotNull(); }