@Test
public void testCopyStrategy() {

  DistCpOptions options = OptionsParser.parse(new String[] {
      "-strategy",
      "dynamic",
      "-f",
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  assertThat(options.getCopyStrategy()).isEqualTo("dynamic");
  options = OptionsParser.parse(new String[] {
      "-f",
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  assertThat(options.getCopyStrategy()).isEqualTo(DistCpConstants.UNIFORMSIZE);
}