@Test
public void testSourceListingAndSourcePath() {

  try {
    OptionsParser.parse(new String[] {
        "-f",
        "hdfs://localhost:8020/source/first",
        "hdfs://localhost:8020/source/first",
        "hdfs://localhost:8020/target/"});
    Assert.fail("Both source listing & source paths allowed");
  } catch (IllegalArgumentException ignore) {}
}