@Test
public void testIsRetractedWithRetractedHintTrue() {

  FactRecord fact = new FactRecord().setId(UUID.randomUUID()).setFlags(set(FactRecord.Flag.RetractedHint));
  FactDocument retraction = new FactDocument().setId(UUID.randomUUID());
  when(factSearchManager.searchFacts(inReferenceTo(fact.getId()))).thenReturn(createSearchResult(retraction));
  assertTrue(handler.isRetracted(fact));
  verify(factSearchManager).searchFacts(inReferenceTo(fact.getId()));
  verify(factSearchManager).searchFacts(inReferenceTo(retraction.getId()));
  verifyNoMoreInteractions(factSearchManager);
}