@Test
public void testGetCopyFilterRegexCopyFilter() {

  Configuration configuration = new Configuration(false);
  configuration.set(DistCpConstants.CONF_LABEL_FILTERS_FILE, "random");
  CopyFilter copyFilter = CopyFilter.getCopyFilter(configuration);
  assertTrue("copyFilter should be instance of RegexCopyFilter",
          copyFilter instanceof RegexCopyFilter);
}