org.xmldb.api.base.Collection root = DatabaseManager.getCollection("xmldb:exist: CollectionManagementServiceImpl mgr = (CollectionManagementServiceImpl) root.getService("CollectionManagementService", "1.0"); mgr.removeCollection("destination");
    public void testXMLDBRead() throws Exception {        BrokerPool.FORCE_CORRUPTION = false;        BrokerPool pool = startDB();                org.xmldb.api.base.Collection test = DatabaseManager.getCollection("xmldb:exist:///db/destination/test3", "admin", "");        Resource res = test.getResource("test_xmldb.xml");        assertNotNull("Document should not be null", res);        System.out.println(res.getContent());    }