@Test
public void testCommitBeforeCapture() {

    snapshotManager.commit(100L, 0);
    verify(mockReplicatedLog, never()).snapshotCommit();
    verify(mockDataPersistenceProvider, never()).deleteMessages(anyLong());
    verify(mockDataPersistenceProvider, never()).deleteSnapshots(any(SnapshotSelectionCriteria.class));
}