### Question:
DirectoryClassPathRoot implements ClasspathRoot { public Collection<ElementName> classNames() { return classNames(this.root); } DirectoryClassPathRoot(final File root); InputStream getData(final ElementName classname); InputStream getResource(final String name); Collection<ElementName> classNames();  }### Answer:
@Test public void shouldReturnClassNames() { final File root = new File("target/test-classes/"); this.testee = new DirectoryClassPathRoot(root); assertThat( this.testee.classNames().contains(ElementName.fromString(DirectoryClassPathRootTest.class.getName()))) .isTrue(); }