}
private void commitTest(final boolean explicit)
throws Exception {
final TransactionRunner runner = new TransactionRunner(env);
assertNull(currentTxn.getTxn());
runner.run(new TransactionWorker() {
public void doWork() throws Exception {
final DbTxn txn1 = currentTxn.getTxn();
assertNotNull(txn1);
assertNull(map.put(ONE, ONE));
assertEquals(ONE, map.get(ONE));
runner.run(new TransactionWorker() {
public void doWork() throws Exception {
final DbTxn txn2 = currentTxn.getTxn();
assertNotNull(txn2);
assertTrue(txn1 != txn2);
assertNull(map.put(TWO, TWO));