Directory extends File { @Override public boolean isDirectory() { return true; } Directory(String pathname); @Override boolean isDirectory();  }
@Test void isDirectoryShouldReturnTrue() { assertThat(new Directory("myPath").isDirectory()).isTrue(); }