final String query1 =
"xquery version \"1.0\";" +
"import module namespace processor = \"http://processor\" at \"xmldb:exist://" + testHome.getName() + "/processor.xqm\";" +
"\tprocessor:execute-module-function(xs:anyURI('http://moda'), xs:anyURI('" + testHome.getName() + "/module1.xqm'), 'hello')";
final CompiledExpression xq1 = xqService.compile(query1);
final ResourceSet rs1 = xqService.execute(xq1);
assertEquals(1, rs1.getSize());
Resource r1 = rs1.getIterator().nextResource();
assertEquals("<hello-from>module1</hello-from>", (String)r1.getContent());
final String query2 =
"xquery version \"1.0\";" +
"import module namespace processor = \"http://processor\" at \"xmldb:exist://" + testHome.getName() + "/processor.xqm\";" +
"\tprocessor:execute-module-function(xs:anyURI('http://moda'), xs:anyURI('" + testHome.getName() + "/module2.xqm'), 'hello')";
final CompiledExpression xq2 = xqService.compile(query2);
final ResourceSet rs2 = xqService.execute(xq2);
assertEquals(1, rs2.getSize());
Resource r2 = rs2.getIterator().nextResource();
assertEquals("<hello-from>module2</hello-from>", (String)r2.getContent());