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

    try (SnapshotTracker tracker = new SnapshotTracker(LOG, 2, "leader", mockContext)) {
        tracker.addChunk(1, chunk1, OptionalInt.empty());
        tracker.addChunk(3, chunk3, OptionalInt.empty());
    }
}