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 testStore() {        BrokerPool.FORCE_CORRUPTION = true;        BrokerPool pool = startDB();        DBBroker broker = null;                try {            broker = pool.get(SecurityManager.SYSTEM_USER);            TransactionManager transact = pool.getTransactionManager();            Txn transaction = transact.beginTransaction();            System.out.println("Transaction started ...");            Collection root = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI);            broker.saveCollection(transaction, root);            Collection test = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI.append("test2"));            broker.saveCollection(transaction, test);                File f = new File("samples/biblio.rdf");            IndexInfo info = test.validateXMLResource(transaction, broker, XmldbURI.create("test.xml"),                    new InputSource(f.toURI().toASCIIString()));            test.store(transaction, broker, info, new InputSource(f.toURI().toASCIIString()), false);                        Collection dest = broker.getOrCreateCollection(transaction, XmldbURI.ROOT_COLLECTION_URI.append("destination"));            broker.saveCollection(transaction, dest);                        broker.copyCollection(transaction, test, dest, XmldbURI.create("test3"));            transact.commit(transaction);            System.out.println("Transaction commited ...");            	    } catch (Exception e) {            	        fail(e.getMessage());                      } finally {            pool.release(broker);        }    }