}
/** test a trigger fired by a Collection manipulations */
@Test @Ignore
public void collectionCopy() throws XMLDBException, URISyntaxException {
final IndexQueryService idxConf = (IndexQueryService) root.getService("IndexQueryService", "1.0");
idxConf.configureCollection(COLLECTION_CONFIG);
final XmldbURI srcURI = XmldbURI.xmldbUriFor("/db/testXQueryTrigger/test");
final XmldbURI dstURI = XmldbURI.xmldbUriFor("/db/testXQueryTrigger/test-dst");
final CollectionManagementServiceImpl service = (CollectionManagementServiceImpl) testCollection.getService("CollectionManagementService", "1.0");
final Collection src = service.createCollection("test");
assertNotNull(src);
final Collection dst = service.createCollection("test-dst");
assertNotNull(dst);
service.copy(srcURI, dstURI, null);
// remove the trigger for the Collection under test
idxConf.configureCollection(EMPTY_COLLECTION_CONFIG);
final XPathQueryService query = (XPathQueryService) root.getService("XPathQueryService", "1.0");
ResourceSet result = query.query(BEFORE+CREATE+COLLECTION+testCollectionURI);
assertEquals(1, result.getSize());