public void moveIfExists() throws IOException {
final Path target = util.createTempDir().toPath();
assertThat(DirSupport.moveIfExists(root.toPath().resolve("not-existing"), target), is(false));
assertThat(DirSupport.moveIfExists(root.toPath(), target), is(true));
assertThat(root, not(exists()));
assertThat(target.toFile(), exists());
assertThat(target.toFile(), isDirectory());
assertThat(target.toFile(), not(isEmptyDirectory()));
assertThat(target.resolve("dir2").resolve("dir21").toFile(), isDirectory());
assertThat(target.resolve("dir2").resolve("dir21").resolve("file211.txt").toFile(), isFile());
}