@Test
public void testSearchFactsWithoutSearchResult() {

  FactSearchCriteria criteria = createFactSearchCriteria();
  when(factSearchManager.searchFacts(criteria)).thenReturn(ScrollingSearchResult.<FactDocument>builder().build());
  ResultContainer<FactRecord> container = dao.searchFacts(criteria);
  assertEquals(0, container.getCount());
  assertFalse(container.hasNext());
  verify(factSearchManager).searchFacts(criteria);
  verifyNoInteractions(factManager);
}