@Test
public void testStoreFactAclEntrySavesEntity() {

  FactRecord fact = new FactRecord().setId(UUID.randomUUID());
  FactAclEntryRecord entry = new FactAclEntryRecord().setId(UUID.randomUUID());
  when(factAclEntryRecordConverter.toEntity(entry, fact.getId())).thenReturn(new FactAclEntity());
  assertSame(entry, dao.storeFactAclEntry(fact, entry));
  verify(factManager).saveFactAclEntry(notNull());
  verify(factAclEntryRecordConverter).toEntity(argThat(r -> r.getId() == entry.getId()), eq(fact.getId()));
}