@Test
public void testCopyDir() throws IOException {

    Path initPaths = fsFoo.getPath("/tmp/a/b/c");
    Files.createDirectories(initPaths);
    Path dest = fsFoo.getPath("/dest/a");
    Files.createDirectories(dest);
    Path remoteDest = fsBar.getPath("/dest/a");
    Files.createDirectories(remoteDest);
    Path source = initPaths.getParent().getParent(); // /tmp/a
    FileUtil.copyDir(source, dest);
    FileUtil.copyDir(source, remoteDest);
    assertTrue(Files.exists(fsFoo.getPath("/dest/a/b/c")));
    assertTrue(Files.exists(fsBar.getPath("/dest/a/b/c")));
}