fail(e.getMessage());
}
}
public void testModule() {
Resource doc;
ResourceSet result;
String query;
String message;
try {
Collection testCollection = getTestCollection();
doc = testCollection.createResource(MODULE1_NAME, "BinaryResource");
doc.setContent(module1);
((EXistResource) doc).setMimeType("application/xquery");
testCollection.storeResource(doc);
doc = testCollection.createResource(MODULE3_NAME, "BinaryResource");
doc.setContent(module3);
((EXistResource) doc).setMimeType("application/xquery");
testCollection.storeResource(doc);
doc = testCollection.createResource(MODULE4_NAME, "BinaryResource");
doc.setContent(module4);
((EXistResource) doc).setMimeType("application/xquery");
testCollection.storeResource(doc);
doc = testCollection.createResource(FATHER_MODULE_NAME, "BinaryResource");
doc.setContent(fatherModule);
((EXistResource) doc).setMimeType("application/xquery");
testCollection.storeResource(doc);
doc = testCollection.createResource(CHILD1_MODULE_NAME, "BinaryResource");
doc.setContent(child1Module);
((EXistResource) doc).setMimeType("application/xquery");
testCollection.storeResource(doc);
doc = testCollection.createResource(CHILD2_MODULE_NAME, "BinaryResource");
doc.setContent(child2Module);
((EXistResource) doc).setMimeType("application/xquery");
testCollection.storeResource(doc);
XPathQueryService service =
(XPathQueryService) testCollection.getService(