@Test
public void testRetractFactUpdatesEntity() {

  FactRecord record = new FactRecord().setId(UUID.randomUUID());
  mockReindexingOfFact(record);
  assertNotNull(dao.retractFact(record));
  verify(factManager).retractFact(record.getId());
  verifyReindexingOfFact(record);
}