PrincipalPolicyImpl extends AbstractAccessControlList implements PrincipalAccessControlList { @Override @NotNull public Principal getPrincipal() { return principal; } PrincipalPolicyImpl(@NotNull Principal principal, @NotNull String oakPath, @NotNull MgrProvider mgrProvider); @Override @NotNull List<EntryImpl> getEntries(); @Override @NotNull RestrictionProvider getRestrictionProvider(); @Override @NotNull Principal getPrincipal(); @Override boolean addEntry(@Nullable String effectivePath, @NotNull Privilege[] privileges); @Override boolean addEntry(@Nullable String effectivePath, @NotNull Privilege[] privileges, @NotNull Map<String, Value> restrictions, @NotNull Map<String, Value[]> mvRestrictions); @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 void removeAccessControlEntry(AccessControlEntry ace);  }
@Test public void testGetPrincipal() { assertSame(principal, policy.getPrincipal()); }