StreamSpliterator implements Spliterator<T> { @Override public long estimateSize() { return Long.MAX_VALUE; } StreamSpliterator(final JavaType type, final JsonParser parser); @Override boolean tryAdvance(final Consumer<? super T> action); @Override Spliterator<T> trySplit(); @Override long estimateSize(); @Override int characteristics();  }
@Test void shouldNotPredictEstimateSize() { assertThat(new StreamSpliterator<>(type, parser).estimateSize(), is(Long.MAX_VALUE)); }