@Test
public void testCopyStrategy() {

  final DistCpOptions.Builder builder = new DistCpOptions.Builder(
      new Path("hdfs://localhost:8020/source/first"),
      new Path("hdfs://localhost:8020/target/"));
  Assert.assertEquals(DistCpConstants.UNIFORMSIZE,
      builder.build().getCopyStrategy());
  builder.withCopyStrategy("dynamic");
  Assert.assertEquals("dynamic", builder.build().getCopyStrategy());
}