@Test
public void testSearchObjectsWithoutSearchResult() {

  FactSearchCriteria criteria = createFactSearchCriteria();
  when(factSearchManager.searchObjects(criteria)).thenReturn(SearchResult.<ObjectDocument>builder().build());
  ResultContainer<ObjectRecord> container = dao.searchObjects(criteria);
  assertEquals(0, container.getCount());
  assertFalse(container.hasNext());
  verify(factSearchManager).searchObjects(criteria);
  verifyNoInteractions(objectManager);
}