@Test
public void testIsRetractedPopulatesSearchCriteria() {

  FactRecord fact = new FactRecord().setId(UUID.randomUUID()).setFlags(set(FactRecord.Flag.RetractedHint));
  assertFalse(handler.isRetracted(fact));
  verify(factSearchManager).searchFacts(argThat(criteria -> {
    assertEquals(set(fact.getId()), criteria.getInReferenceTo());
    assertFalse(criteria.getFactTypeID().isEmpty());
    assertFalse(criteria.getAvailableOrganizationID().isEmpty());
    assertNotNull(criteria.getCurrentUserID());
    return true;
  }));
}