### Question:
DependencyClassPathRoot implements ClasspathRoot { public Collection<ElementName> classNames() { return Collections.emptyList(); } DependencyClassPathRoot(final ClasspathRoot child); InputStream getData(final ElementName name); Collection<ElementName> classNames(); InputStream getResource(final String name);  }### Answer:
@Test public void shouldNotReturnClassNames() { when(this.child.classNames()).thenReturn(Collections.singletonList(ElementName.fromString("foo"))); assertThat(this.testee.classNames()).isEmpty(); }