@Test
public void testSnapshotCommit() {

    replicatedLogImpl.snapshotPreCommit(1, 1);
    replicatedLogImpl.snapshotCommit();
    assertEquals("size", 2, replicatedLogImpl.size());
    assertEquals("dataSize", 2, replicatedLogImpl.dataSize());
    assertEquals("getSnapshotIndex", 1, replicatedLogImpl.getSnapshotIndex());
    assertEquals("getSnapshotTerm", 1, replicatedLogImpl.getSnapshotTerm());
    assertEquals("lastIndex", 3, replicatedLogImpl.lastIndex());
    assertEquals("lastTerm", 2, replicatedLogImpl.lastTerm());
    Assert.assertNull("get(0)", replicatedLogImpl.get(0));
    Assert.assertNull("get(1)", replicatedLogImpl.get(1));
    Assert.assertNotNull("get(2)", replicatedLogImpl.get(2));
    Assert.assertNotNull("get(3)", replicatedLogImpl.get(3));
}