### Question:
LuceneAllDocumentsReader implements BoundedIterable<Document> { @Override public long maxCount() { return partitionReaders.stream().mapToLong( LucenePartitionAllDocumentsReader::maxCount ).sum(); } LuceneAllDocumentsReader( List<LucenePartitionAllDocumentsReader> partitionReaders ); @Override long maxCount(); @Override Iterator<Document> iterator(); @Override void close();  }### Answer:
@Test void allDocumentsMaxCount() { LuceneAllDocumentsReader allDocumentsReader = createAllDocumentsReader(); assertEquals( 3, allDocumentsReader.maxCount()); }