KinesisReaderCheckpoint implements Iterable<ShardCheckpoint>, UnboundedSource.CheckpointMark, Serializable { @Override public Iterator<ShardCheckpoint> iterator() { return shardCheckpoints.iterator(); } KinesisReaderCheckpoint(Iterable<ShardCheckpoint> shardCheckpoints); List<KinesisReaderCheckpoint> splitInto(int desiredNumSplits); @Override void finalizeCheckpoint(); @Override String toString(); @Override Iterator<ShardCheckpoint> iterator();  }
@Test(expected = UnsupportedOperationException.class) public void isImmutable() { Iterator<ShardCheckpoint> iterator = checkpoint.iterator(); iterator.remove(); }