@Test
public void testCallingPersistWithoutCaptureWillDoNothing() {

    snapshotManager.persist(ByteState.empty(), Optional.empty(), Runtime.getRuntime().totalMemory());
    verify(mockDataPersistenceProvider, never()).saveSnapshot(any(Snapshot.class));
    verify(mockReplicatedLog, never()).snapshotPreCommit(9L, 6L);
    verify(mockRaftActorBehavior, never()).handleMessage(any(ActorRef.class), any(SendInstallSnapshot.class));
}