@Test
public void testWithAclAddsEntryToEmptyAcl() {

  UUID subjectID = UUID.randomUUID();
  FactRecord fact = new FactRecord().setOriginID(UUID.randomUUID());
  fact = withAcl(fact, UUID.randomUUID(), list(subjectID));
  assertEquals(1, fact.getAcl().size());
  assertNotNull(fact.getAcl().get(0).getId());
  assertEquals(fact.getOriginID(), fact.getAcl().get(0).getOriginID());
  assertEquals(subjectID, fact.getAcl().get(0).getSubjectID());
  assertTrue(fact.getAcl().get(0).getTimestamp() > 0);
}