### Question:
FileManager { public void move(File object, File newParent) throws ApplicationException { move(object, newParent, null); } FileManager();  FileManager(Application app); void synchronize(File source, File target); void rename(File fileToRename, File target); void move(File object, File newParent); void move(File object, File newParent, FileFilter filter); void delete(File object); void delete(File object, FileFilter filter); void deleteChildren(File parentDir); void deleteRecursively(File file); void deleteRecursively(File file, FileFilter filter,
                                DeletionPolicy deletePolicy); File copy(File objectFile, File destDir); File copy(File objectFile, File destDir, boolean overwrite); void copyRecursively(File objectFile, File destDir); void copyRecursively(File objectFile, File destDir, FileFilter filter); void copyRecursively(File objectFile, File destDir,
                              FileFilter filter, boolean overwrite); boolean filesDiffer(File f1, File f2);  }### Answer:
@Test(enabled = false) public void testMove() throws Exception { File fromDir = new File(fmWorkspace, "from"); fromDir.mkdir(); File toDir = new File(fmWorkspace, "to"); toDir.mkdir(); createSourceFiles(fromDir, "abc"); fileManager.move(fromDir, toDir); assertFalse(fromDir.exists()); assertTrue(new File(toDir, fromDir.getName()).exists()); }
@Test(enabled = false) public void testMove2() throws Exception { File fromDir = new File(fmWorkspace, "from"); fromDir.mkdir(); File toDir = new File(fmWorkspace, "to"); toDir.mkdir(); createSourceFiles(fromDir, "abc"); FileFilter filter = new FileFilter() { @Override public boolean accept(File pathname) { return false; } }; fileManager.move(fromDir, toDir, filter); assertTrue(fromDir.exists()); assertFalse(new File(toDir, fromDir.getName()).exists()); }