FileUtils { public static void createDir(File target) throws AdeUsageException { if (!target.exists() && !target.mkdir() && !target.exists()) { throw new AdeUsageException("Failed creating directory " + target.getPath()); } } private  FileUtils(); static void createDir(File target); static void createDirs(File target); static File[] listFilesSorted(File directory); static PrintWriter openPrintWriterToFile(File file, boolean verbose); static void assertExists(File... files);  }
@Test public void testCreateDir() throws Exception { File newDir = new File(tempFolder.getRoot(), "newDir"); FileUtils.createDir(newDir); assertTrue("Assert new directory created", newDir.exists()); }