@Test
public void testFromEntityWithAcl() {

  FactEntity entity = new FactEntity().setId(UUID.randomUUID());
  when(factManager.fetchFactAcl(entity.getId()))
          .thenReturn(ListUtils.list(new FactAclEntity(), new FactAclEntity(), new FactAclEntity()));
  when(factAclEntryRecordConverter.fromEntity(notNull())).thenReturn(new FactAclEntryRecord());
  FactRecord record = converter.fromEntity(entity);
  assertEquals(3, record.getAcl().size());
  verify(factManager).fetchFactAcl(entity.getId());
  verify(factAclEntryRecordConverter, times(3)).fromEntity(notNull());
}