@Test
public void testExclusionsOption() {

  DistCpOptions options = OptionsParser.parse(new String[] {
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  Assert.assertNull(options.getFiltersFile());
  options = OptionsParser.parse(new String[] {
      "-filters",
      "/tmp/filters.txt",
      "hdfs://localhost:8020/source/first",
      "hdfs://localhost:8020/target/"});
  assertThat(options.getFiltersFile()).isEqualTo("/tmp/filters.txt");
}