### Question:
FactManager implements LifecycleAspect { public List<FactAclEntity> fetchFactAcl(UUID id) { if (id == null) return ListUtils.list(); return factDao.fetchAcl(id).all(); } @Inject  FactManager(ClusterManager clusterManager); @Override void startComponent(); @Override void stopComponent(); FactTypeEntity getFactType(UUID id); FactTypeEntity getFactType(String name); List<FactTypeEntity> fetchFactTypes(); FactTypeEntity saveFactType(FactTypeEntity type); FactEntity getFact(UUID id); Iterator<FactEntity> getFacts(List<UUID> id); FactEntity saveFact(FactEntity fact); FactEntity refreshFact(UUID id); FactEntity retractFact(UUID id); List<FactAclEntity> fetchFactAcl(UUID id); FactAclEntity saveFactAclEntry(FactAclEntity entry); List<FactCommentEntity> fetchFactComments(UUID id); FactCommentEntity saveFactComment(FactCommentEntity comment); List<MetaFactBindingEntity> fetchMetaFactBindings(UUID id); MetaFactBindingEntity saveMetaFactBinding(MetaFactBindingEntity binding);  }### Answer:
@Test public void testSaveAndFetchFactAcl() { FactEntity fact = createAndSaveFact(); FactAclEntity entry = createAndSaveFactAclEntry(fact.getId()); List<FactAclEntity> acl = getFactManager().fetchFactAcl(fact.getId()); assertEquals(1, acl.size()); assertFactAclEntry(entry, acl.get(0)); }
@Test public void testFetchFactAclWithNonExistingFact() { assertEquals(0, getFactManager().fetchFactAcl(null).size()); assertEquals(0, getFactManager().fetchFactAcl(UUID.randomUUID()).size()); }