}
});
HSQuery hsQuery = mock(HSQuery.class);
cache = mock(AdvancedCache.class);
when(hsQuery.queryDocumentExtractor()).thenReturn(extractor);
when(hsQuery.queryResultSize()).thenReturn(entityInfos.size());
EagerIterator iterator = new EagerIterator(entityInfos, new EntityLoader(cache, new KeyTransformationHandler()), getFetchSize());
}