File f = new File("samples/biblio.rdf");
String existHome = System.getProperty("exist.home"); File existDir = existHome==null ? new File(".") : new File(existHome); File f = new File(existDir,"samples/biblio.rdf");
    public void testXMLDBStore() {        BrokerPool.FORCE_CORRUPTION = false;        BrokerPool pool = null;        try {        	pool = startDB();        	assertNotNull(pool);	        org.xmldb.api.base.Collection root = DatabaseManager.getCollection("xmldb:exist://" + DBBroker.ROOT_COLLECTION, "admin", "");	        assertNotNull(root);	        CollectionManagementServiceImpl mgr = (CollectionManagementServiceImpl) 	            root.getService("CollectionManagementService", "1.0");	        assertNotNull(mgr);	        org.xmldb.api.base.Collection test = root.getChildCollection("test");	        if (test == null)	            test = mgr.createCollection(TestConstants.TEST_COLLECTION_URI.toString());	        assertNotNull(test);	        org.xmldb.api.base.Collection test2 = test.getChildCollection("test2");	        if (test2 == null)	            test2 = mgr.createCollection(TestConstants.TEST_COLLECTION_URI.append("test2").toString());	        assertNotNull(test2);	        	        File f = new File("samples/biblio.rdf");	        assertNotNull(f);	        Resource res = test2.createResource("test_xmldb.xml", "XMLResource");	        assertNotNull(res);	        res.setContent(f);	        test2.storeResource(res);	        	        org.xmldb.api.base.Collection dest = root.getChildCollection("destination");	        	        if (dest == null)	            dest = mgr.createCollection("destination");	        assertNotNull(dest);	        	        mgr.copy(TestConstants.TEST_COLLECTION_URI2, XmldbURI.ROOT_COLLECTION_URI.append("destination"), XmldbURI.create("test3"));	    } catch (Exception e) {            	        fail(e.getMessage()); 	    }    }