@Test
public void testGetCopyFilterNonExistingClass() throws Exception {

  final String filterName =
          "org.apache.hadoop.tools.RegexpInConfigurationWrongFilter";
  Configuration configuration = new Configuration(false);
  configuration.set(DistCpConstants.CONF_LABEL_FILTERS_CLASS, filterName);
  intercept(RuntimeException.class,
      DistCpConstants.CLASS_INSTANTIATION_ERROR_MSG + filterName,
      () -> CopyFilter.getCopyFilter(configuration));
}