ImmutablePrincipalPolicy extends ImmutableACL implements PrincipalAccessControlList { @Override public @NotNull Principal getPrincipal() { return principal; } ImmutablePrincipalPolicy(@NotNull Principal principal, @NotNull String oakPath, @NotNull List<? extends PrincipalAccessControlList.Entry> entries, @NotNull RestrictionProvider restrictionProvider, @NotNull NamePathMapper namePathMapper);  ImmutablePrincipalPolicy(@NotNull PrincipalPolicyImpl accessControlList); @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 int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetPrincipal() throws Exception { assertEquals(getTestSystemUser().getPrincipal(), immutable.getPrincipal()); }