### Question:
BatchSpliterator implements Spliterator<T> { @Override public boolean tryAdvance(Consumer<? super T> action) { return this.spliterator.tryAdvance(action); } BatchSpliterator(Spliterator<T> spliterator, int batchSize); @Override boolean tryAdvance(Consumer<? super T> action); @Override Spliterator<T> trySplit(); @Override long estimateSize(); @Override int characteristics();  }### Answer:
@Test public void tryAdvance() throws Exception { for (int i = 0; i < spliteratorSize; i++) { assertTrue(spliterator.tryAdvance(block -> { })); } assertFalse(spliterator.tryAdvance(block -> { })); }