### Question:
DependencyClassPathRoot implements ClasspathRoot { public InputStream getResource(final String name) throws IOException { return this.child.getResource(name); } DependencyClassPathRoot(final ClasspathRoot child); InputStream getData(final ElementName name); Collection<ElementName> classNames(); InputStream getResource(final String name);  }### Answer:
@Test public void shouldReturnResourcesFromChild() throws IOException { final InputStream is = Mockito.mock(InputStream.class); when(this.child.getResource("foo")).thenReturn(is); assertThat(is).isSameAs(this.testee.getResource("foo")); }