### Question:
ParallelScanReadResult extends AbstractReadResult<T> { @Override protected Spliterator<T> spliterator() { if (iterationStarted) { throw new IllegalStateException("ParallelScanReadResult can only be iterated once."); } iterationStarted = true; return nextSplit(scanRequest); } protected  ParallelScanReadResult(AmazonDynamoDB amazonDynamoDb, ScanRequest scanRequest); @Override Stream<T> stream();  }### Answer:
@Test void spliterator_characteristics_nonNull() { Spliterator<Item> spliterator = build(mock(AmazonDynamoDB.class), initialRequest(MAX_SEGMENTS)).spliterator(); assertThat(spliterator.characteristics()).isEqualTo(Spliterator.NONNULL); }
@Test void spliterator_estimateSize_returnsMaxLong() { long size = build(mock(AmazonDynamoDB.class), initialRequest(MAX_SEGMENTS)).spliterator().estimateSize(); assertThat(size).isEqualTo(Long.MAX_VALUE); }