@Test
public void testSourceFolderContent() throws InvalidSyntaxException, SaxonApiException, MalformedURLException {

    GauloisPipe piper = new GauloisPipe(configFactory);
    ConfigUtil cu = new ConfigUtil(configFactory.getConfiguration(), piper.getUriResolver(), "src/test/resources/folderContentRelative.xml");
    Config config = cu.buildConfig(emptyInputParams);
    assertTrue("relative path in source folder fails",config.getSources().getFiles().size()>=34);
    
    cu = new ConfigUtil(configFactory.getConfiguration(), piper.getUriResolver(), "cp:/folderContentAbsUri.xml");
    HashMap<QName, ParameterValue> params = new HashMap<>();
    File currentPath = new File(System.getProperty("user.dir"));
    // check if we are in the right directory
    File test = new File(currentPath, "src/test/resources/folderContentAbsUri.xml");
    if(!test.exists()) {
        // probably, we are in parent folder
        currentPath = new File(currentPath, "gaulois-pipe");
        test = new File(currentPath, "src/test/resources/folderContentAbsUri.xml");
        if(!test.exists()) {
            fail("Unable to locate gaulois-pipe folder. Try moving to gaulois-pipe module folder.");
        }
    }
    QName sourceQn = new QName("source");
    params.put(sourceQn, new ParameterValue(sourceQn, currentPath.toURI().toURL().toExternalForm(), datatypeFactory.XS_STRING));
    config = cu.buildConfig(params);
    assertTrue("absolute URI in source folder fails", config.getSources().getFiles().size()>=34);
}