@Test public void testRemovePutCommit() throws Exception { table.put("Key", "Value"); table.commit(); table.remove("Key"); table.put("Key", "Value"); Assert.assertEquals(0, table.commit()); }
@Test public void testPutCommit() throws Exception { table.put("Key1", "Value1"); table.put("Key2", "Value2"); table.put("Key3", "Value3"); Assert.assertEquals(3, table.commit()); }