@Test
public void testRetractFact() {

  FactEntity fact = createAndSaveFact();
  assertEquals(Collections.emptySet(), getFactManager().getFact(fact.getId()).getFlags());
  FactEntity retractedFact = getFactManager().retractFact(fact.getId());
  assertEquals(fact.getId(), retractedFact.getId());
  assertEquals(Collections.singleton(FactEntity.Flag.RetractedHint), retractedFact.getFlags());
  assertEquals(Collections.singleton(FactEntity.Flag.RetractedHint), getFactManager().getFact(fact.getId()).getFlags());
}