@Test
public void testRefreshFactFiltersDuplicateAclEntry() {

  FactAclEntryRecord entry = new FactAclEntryRecord()
          .setId(UUID.randomUUID());
  FactRecord fact = new FactRecord()
          .setId(UUID.randomUUID())
          .addAclEntry(entry);
  when(factManager.fetchFactAcl(fact.getId()))
          .thenReturn(ListUtils.list(new FactAclEntity().setId(entry.getId())));
  dao.refreshFact(fact);
  verify(factManager, never()).saveFactAclEntry(any());
  verify(factManager).fetchFactAcl(fact.getId());
}