File f = new File("samples/shakespeare/r_and_j.xml");
String existHome = System.getProperty("exist.home"); File existDir = existHome==null ? new File(".") : new File(existHome); File f = new File(existDir,"samples/shakespeare/r_and_j.xml");
	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,	XmldbURI.ROOT_COLLECTION_URI.append("test"));			assertNotNull(root);			broker.saveCollection(transaction, root);			Collection test2 = broker.getOrCreateCollection(transaction, XmldbURI.ROOT_COLLECTION_URI.append("test/test2"));			assertNotNull(test2);			broker.saveCollection(transaction, test2);			File f = new File("samples/shakespeare/r_and_j.xml");			assertNotNull(f);			IndexInfo info = test2.validateXMLResource(transaction, broker, XmldbURI.create("test2.xml"), new InputSource(f.toURI().toASCIIString()));			assertNotNull(info);			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 ...");			broker.copyXMLResource(transaction, info.getDocument(), root, XmldbURI.create("new_test2.xml"));			broker.saveCollection(transaction, root);			//			Don't commit...			pool.getTransactionManager().getJournal().flushToLog(true);			System.out.println("Transaction interrupted ...");	    } catch (Exception e) {            	        fail(e.getMessage());					} finally {			if (pool != null) pool.release(broker);		}	}