service = (XPathQueryService) root.getService("XQueryService", "1.0");
CollectionManagementService cms = (CollectionManagementService)
root.getService("CollectionManagementService", "1.0");
//Creates the 'test' collection
test = cms.createCollection("test");
assertNotNull(test);
storeResource(test, "test.xq", "BinaryResource", "application/xquery", "doc('test.xml')");
storeResource(test, "test1.xq", "BinaryResource", "application/xquery", "doc('/test.xml')");