txn.commit();
txn = Transaction.startTransaction(false);
db.update("key 1", "value 1p");
db.update("key 2", "value 2p");
txn.rollback();
txn = Transaction.startTransaction(true);
assertEquals(2, db.size());
assertEquals("value 2", db.get("key 2"));
assertEquals("value 1", db.get("key 1"));