### Question:
Directory extends Path { public abstract File getFile(String name);  abstract File getFile(String name); abstract Directory getDirectory(String name); Directory createDirectory(String name); abstract boolean exists(); abstract void create(); abstract void renameTo(String newName); abstract void visitChildren(@Nullable FileVisitor fileVisitor, @Nullable DirectoryVisitor directoryVisitor,
                                       @Nullable VisitFailed visitFailed); void visitChildren(@Nullable FileVisitor fileVisitor, @Nullable DirectoryVisitor directoryVisitor); abstract void delete(); abstract long getLastModifiedTime(); abstract void setLastModifiedTime(long time); abstract boolean isSetLastModifiedTimeSupported(); void deleteContents(); boolean isEmpty();  }### Answer:
@Test public void testCreateFile() throws Exception { Directory testOutputDirectory = Paths.getInstance().getTestOutputDirectory("testCreateFile"); File file = testOutputDirectory.getFile("testfile.txt"); createFileWithTestContents(file); validateTestContents(file); }