public void testCollectHits() throws IOException {
Query q = new TermQuery(new Term(FIELDNAME, FIELDVALUE));
Hits hits = this.searcher.get().search(q);
assertEquals(amountDocuments, hits.length());
List<String> returnValue = this.gdataSearcher.collectHits(hits, 1, 0);
assertEquals(hits.doc(0).getField(IndexDocument.FIELD_ENTRY_ID)
.stringValue(), returnValue.get(0));
returnValue = this.gdataSearcher.collectHits(hits, 1, 1);
assertEquals(hits.doc(0).getField(IndexDocument.FIELD_ENTRY_ID)
.stringValue(), returnValue.get(0));