assertEquals(4, log.last().getIndex() + 1);
assertNotNull(log.get(2));
assertEquals(4, log.last().getIndex() + 1);
assertNotNull(log.get(2));
// Check that the entry at index 2 has the new data
assertEquals("two-1", log.get(2).getData());
// Check that the entry at index 2 has the new data
assertEquals("two-1", log.get(2).getData());