@Test
public void testGetCopyFilterRegexpInConfigurationFilter() {

  final String filterName =
          "org.apache.hadoop.tools.RegexpInConfigurationFilter";
  Configuration configuration = new Configuration(false);
  configuration.set(DistCpConstants.CONF_LABEL_FILTERS_CLASS, filterName);
  CopyFilter copyFilter = CopyFilter.getCopyFilter(configuration);
  assertTrue("copyFilter should be instance of RegexpInConfigurationFilter",
          copyFilter instanceof RegexpInConfigurationFilter);
}