@Test
public void testIdentifyClassFilesWithAntScannerWithListIncludesExcludes() {

    Map<String, Object> parameters = Maps.newHashMap();
    parameters.put("baseDir", TEST_CLASSES_DIR);
    parameters.put("includes", Arrays.asList("**/*ReaderTest.class", "**/*UtilTest.class"));
    parameters.put("excludes", Collections.singletonList("**/Java*.class"));
    List<File> files = FileNameUtil.identifyFiles(parameters);
    String aTestFileName = JarFileUtilTest.class.getCanonicalName().replaceAll("\\.", "/");
    File aTestFile = new File(TEST_CLASSES_DIR + aTestFileName + ".class");
    assertThat(files.contains(new File(aTestFile.getPath())), CoreMatchers.is(true));
    String bTestFileName = ClassHandler.class.getCanonicalName().replaceAll("\\.", "/");
    File bTestFile = new File(TEST_CLASSES_DIR + bTestFileName + ".class");
    assertThat(files.contains(new File(bTestFile.getPath())), CoreMatchers.is(false));
}