ACL extends AbstractAccessControlList { @NotNull @Override public List<ACE> getEntries() { return entries; } ACL(@Nullable String oakPath, @Nullable List<ACE> entries,
        @NotNull NamePathMapper namePathMapper); @NotNull @Override List<ACE> getEntries(); @Override void removeAccessControlEntry(AccessControlEntry ace); @Override boolean addEntry(@NotNull Principal principal, @NotNull Privilege[] privileges,
                            boolean isAllow, @Nullable Map<String, Value> restrictions,
                            @Nullable Map<String, Value[]> mvRestrictions); @Override void orderBefore(@NotNull AccessControlEntry srcEntry, @Nullable AccessControlEntry destEntry); @Override String toString();  }
@Test public void testEmptyAcl() { AbstractAccessControlList acl = createEmptyACL(); assertNotNull(acl.getAccessControlEntries()); assertNotNull(acl.getEntries()); assertEquals(0, acl.getAccessControlEntries().length); assertEquals(acl.getAccessControlEntries().length, acl.getEntries().size()); assertEquals(0, acl.size()); assertTrue(acl.isEmpty()); }
@Test public void testGetEntries() throws RepositoryException { List<ACE> aces = createTestEntries(); AbstractAccessControlList acl = createACL(TEST_PATH, aces, getNamePathMapper()); assertNotNull(acl.getEntries()); assertNotNull(acl.getAccessControlEntries()); assertEquals(aces.size(), acl.getEntries().size()); assertEquals(aces.size(), acl.getAccessControlEntries().length); assertTrue(acl.getEntries().containsAll(aces)); assertTrue(Arrays.asList(acl.getAccessControlEntries()).containsAll(aces)); }