assertEquals(log.lastIndex(), 5);
SnapshotEntry entry = log.getEntry(3);
assertEquals(entry.term(), 1);
assertEquals("Hello world!", new String(entry.data()));
OperationEntry entry2 = log.getEntry(4);
assertEquals(entry2.term(), 1);
assertEquals("bar", entry2.operation());
OperationEntry entry3 = log.getEntry(5);
assertEquals(entry3.term(), 1);
assertEquals("baz", entry3.operation());
}