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