AbstractAccessControlList implements JackrabbitAccessControlList { @NotNull public abstract List<? extends JackrabbitAccessControlEntry> getEntries(); AbstractAccessControlList(@Nullable String oakPath,
                                     @NotNull NamePathMapper namePathMapper); @Nullable String getOakPath(); @NotNull NamePathMapper getNamePathMapper(); @NotNull abstract List<? extends JackrabbitAccessControlEntry> getEntries(); @NotNull abstract RestrictionProvider getRestrictionProvider(); @Nullable @Override String getPath(); @Override AccessControlEntry[] getAccessControlEntries(); @Override boolean addAccessControlEntry(Principal principal, Privilege[] privileges); @Override boolean isEmpty(); @Override int size(); @NotNull @Override String[] getRestrictionNames(); @Override int getRestrictionType(@NotNull String restrictionName); @Override boolean isMultiValueRestriction(@NotNull String restrictionName); @Override boolean addEntry(@NotNull Principal principal, @NotNull Privilege[] privileges, boolean isAllow); @Override boolean addEntry(@NotNull Principal principal, @NotNull Privilege[] privileges, boolean isAllow, @Nullable Map<String, Value> restrictions);  }
@Test public void testGetEntries() throws RepositoryException { List<JackrabbitAccessControlEntry> aces = createTestEntries(); AbstractAccessControlList acl = createACL(aces); 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)); }