public boolean shouldUpdateRoot() {
    return updateRoot;
  }
@Test
  public void testUpdateRoot() {
    final DistCpOptions options = new DistCpOptions.Builder(
        Collections.singletonList(
            new Path("hdfs://localhost:8020/source")),
        new Path("hdfs://localhost:8020/target/"))
        .withUpdateRoot(true)
        .build();
    Assert.assertTrue(options.shouldUpdateRoot());
  }