private AdvancedCache<String, String> cache;
@Test(expectedExceptions = IllegalArgumentException.class)
public void testLazyIteratorInitWithInvalidFetchSize() throws IOException {
DocumentExtractor extractor = mock(DocumentExtractor.class);
when(extractor.extract(anyInt())).thenAnswer(new Answer<EntityInfo>() {
@Override
public EntityInfo answer(InvocationOnMock invocation) throws Throwable {
int index = (Integer) invocation.getArguments()[0];
return entityInfos.get(index);
}