@Test
public void testSearchFactsExcludeRetractedNotRetracted() {

  FactRecord fact = new FactRecord();
  mockSearch(fact);
  when(retractionHandler.isRetracted(fact)).thenReturn(false);
  FactSearchCriteria criteria = createFactSearchCriteria(b -> b);
  ResultSet<Fact> result = handler.search(criteria, false);
  assertEquals(1, ListUtils.list(result.iterator()).size());
  verify(retractionHandler).isRetracted(fact);
}