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;        DBBroker broker = null;        try {        	assertNotNull(pool);            broker = pool.get(SecurityManager.SYSTEM_USER);            assertNotNull(broker);                                   TransactionManager transact = pool.getTransactionManager();            assertNotNull(transact);               Txn transaction = transact.beginTransaction();            assertNotNull(transaction);               System.out.println("Transaction started ...");                        Collection test = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI);            assertNotNull(test);               broker.saveCollection(transaction, test);                        Collection test2 = broker.getOrCreateCollection(transaction, TestConstants.TEST_COLLECTION_URI2);            assertNotNull(test2);               broker.saveCollection(transaction, test2);                        File f = new File("samples/biblio.rdf");            assertNotNull(f);               InputSource is = new InputSource(f.toURI().toASCIIString());            assertNotNull(is);               IndexInfo info = test.validateXMLResource(transaction, broker, XmldbURI.create("biblio.rdf"), is);            assertNotNull(info);               test.store(transaction, broker, info, is, false);                        transact.commit(transaction);            System.out.println("Transaction commited ...");                        transaction = transact.beginTransaction();            System.out.println("Transaction started ...");                        broker.removeCollection(transaction, test);            //          Don't commit...            transact.getJournal().flushToLog(true);            System.out.println("Transaction interrupted ...");	    } catch (Exception e) {            	        fail(e.getMessage());                       } finally {        	if (pool != null) pool.release(broker);        }    }