@Test
public void testLogPath() {

  DistCpOptions options = OptionsParser.parse(new String[] {
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  Assert.assertNull(options.getLogPath());
  options = OptionsParser.parse(new String[] {
      "-log",
      "hdfs://localhost:8020/logs",
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  Assert.assertEquals(options.getLogPath(), new Path("hdfs://localhost:8020/logs"));
}