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