@Test
public void testSnapshotRollback() {

    replicatedLogImpl.snapshotPreCommit(1, 1);
    assertEquals("size", 2, replicatedLogImpl.size());
    assertEquals("getSnapshotIndex", 1, replicatedLogImpl.getSnapshotIndex());
    assertEquals("getSnapshotTerm", 1, replicatedLogImpl.getSnapshotTerm());
    replicatedLogImpl.snapshotRollback();
    assertEquals("size", 4, replicatedLogImpl.size());
    assertEquals("dataSize", 4, replicatedLogImpl.dataSize());
    assertEquals("getSnapshotIndex", -1, replicatedLogImpl.getSnapshotIndex());
    assertEquals("getSnapshotTerm", -1, replicatedLogImpl.getSnapshotTerm());
    Assert.assertNotNull("get(0)", replicatedLogImpl.get(0));
    Assert.assertNotNull("get(3)", replicatedLogImpl.get(3));
}