@Test
public void testGetFactAcl() throws Exception {

  GetFactAclRequest request = new GetFactAclRequest().setFact(UUID.randomUUID());
  List<FactAclEntryRecord> acl = ListUtils.list(new FactAclEntryRecord(), new FactAclEntryRecord(), new FactAclEntryRecord());
  when(factRequestResolver.resolveFact(request.getFact())).thenReturn(new FactRecord().setAcl(acl));
  ResultSet<AclEntry> result = delegate.handle(request);
  assertEquals(acl.size(), result.getCount());
  assertEquals(0, result.getLimit());
  assertEquals(acl.size(), ListUtils.list(result.iterator()).size());
  verify(aclEntryResponseConverter, times(acl.size())).apply(argThat(acl::contains));
}