@Test
public void testRootPath() throws Exception {

  try {
    clearState();
    List<Path> sources = new ArrayList<Path>();
    sources.add(new Path("/a")
            .makeQualified(cluster.getFileSystem()));
    sources.add(new Path("/b")
            .makeQualified(cluster.getFileSystem()));
    touchFile("/a/a.gz");
    touchFile("/b/b.gz");
    Path targetPath = new Path("/c")
            .makeQualified(cluster.getFileSystem());
    DistCpOptions options = new DistCpOptions(sources, targetPath);
    options.setOutPutDirectory(counterOutputPath);
    new DistCp(configuration, options).execute();
    Assert.assertTrue(cluster.getFileSystem().exists(new Path("/c/a/a.gz")));
    Assert.assertTrue(cluster.getFileSystem().exists(new Path("/c/b/b.gz")));
  }
  catch (Exception e) {
    LOG.error("Exception encountered", e);
    Assert.fail("Unexpected exception: " + e.getMessage());
  }
}