AbstractAccessControlList implements JackrabbitAccessControlList { @Nullable public String getOakPath() { return oakPath; } 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 testGetOakPath() { NamePathMapper npMapper = mockNamePathMapper(getTestPath()); Map<String, String> paths = new HashMap<>(); paths.put(null, null); paths.put(getTestPath(), getTestPath()); paths.put("/", "/"); String oakPath = "/oak:testPath"; paths.put("/jr:testPath", oakPath); paths.put("/{http: for (String path : paths.keySet()) { AbstractAccessControlList acl = createACL(path, Collections.<JackrabbitAccessControlEntry>emptyList(), npMapper); assertEquals(paths.get(path), acl.getOakPath()); } }