@Test
public void testSearchFactsWithLimit() {

  mockSearch(1);
  FactSearchCriteria criteria = createFactSearchCriteria(b -> b.setLimit(25));
  ResultSet<Fact> result = handler.search(criteria, null);
  assertEquals(25, result.getLimit());
  assertEquals(1, result.getCount());
  assertEquals(1, ListUtils.list(result.iterator()).size());
}