static boolean isInvalidSnapshot(final Entry entry)
    {
        return !entry.isValid && ENTRY_TYPE_SNAPSHOT == entry.type;
    }
@Test
    void shouldDetermineIfSnapshotIsInvalid()
    {
        final RecordingLog.Entry validSnapshot = new RecordingLog.Entry(
            42, 5, 1024, 701, 1_000_000_000_000L, 16, ENTRY_TYPE_SNAPSHOT, null, true, 2);
        final RecordingLog.Entry invalidSnapshot = new RecordingLog.Entry(
            42, 5, 1024, 701, 1_000_000_000_000L, 16, ENTRY_TYPE_SNAPSHOT, null, false, 2);
        final RecordingLog.Entry term = new RecordingLog.Entry(
            42, 5, 1024, 701, 1_000_000_000_000L, 16, ENTRY_TYPE_TERM, null, true, 2);

        assertFalse(RecordingLog.isInvalidSnapshot(validSnapshot));
        assertTrue(RecordingLog.isInvalidSnapshot(invalidSnapshot));
        assertFalse(RecordingLog.isInvalidSnapshot(term));
    }