CompoundScroll implements DatabaseScroll { @Override public void onEndBatch() throws IOException { for (final DatabaseScroll scroll : scrolls) { scroll.onEndBatch(); } }  @Override void onStartBatch(); @Override void accept(final SearchHit hit); @Override void onEndBatch();  }
@Test public void shouldOnEnd() throws IOException { scroll.onEndBatch(); verify(first).onEndBatch(); verify(second).onEndBatch(); }