SearchResultImpl implements SearchResult { public long getHitCount() { return hitCount; } SearchResultImpl(SearchQuery query, long hitCount, long documentCount); void addResultItem(SearchResultItem item); SearchResultItem[] getItems(); long getLimit(); long getOffset(); long getPage(); long getPageSize(); SearchQuery getQuery(); void setSearchTime(long time); long getSearchTime(); long getHitCount(); long getDocumentCount(); void setDocumentCount(long count); String toXml();  }
@Test public void testGetHitCount() { assertEquals(hitCount, result.getHitCount()); }