@Test(expected = SnapshotTracker.InvalidChunkException.class)
public void testInvalidLastChunkHashCode() throws IOException {

    try (SnapshotTracker tracker = new SnapshotTracker(LOG, 2, "leader", mockContext)) {
        tracker.addChunk(1, chunk1, OptionalInt.of(LeaderInstallSnapshotState.INITIAL_LAST_CHUNK_HASH_CODE));
        tracker.addChunk(2, chunk2, OptionalInt.of(1));
    }
}