@Test
public void testFindFilesRecurse() throws InvalidSyntaxException {

    GauloisPipe piper = new GauloisPipe(configFactory);
    ConfigUtil cu = new ConfigUtil(configFactory.getConfiguration(), piper.getUriResolver(), "cp:/cp-xsl.xml");
    final Pattern regex = Pattern.compile(".*\\.xml");
    FilenameFilter filter = new FilenameFilter() {
        @Override
        public boolean accept(File dir, String filename) {
            boolean match = regex.matcher(filename).matches();
            return match;
        }
    };
    List<CfgFile> files = cu.getFilesFromDirectory(new File("src/test/resources/findDir-recurse"), filter, true);
    assertEquals("5 files are expected ", files.size(), 5);
}