Utils implements Constants { public static boolean isPrincipalPolicyTree(@NotNull Tree tree) { return tree.exists() && REP_PRINCIPAL_POLICY.equals(tree.getName()) && NT_REP_PRINCIPAL_POLICY.equals(TreeUtil.getPrimaryTypeName(tree)); } private  Utils(); static boolean isPrincipalPolicyTree(@NotNull Tree tree); static boolean isPrincipalEntry(@NotNull Tree tree); static boolean canHandle(@NotNull Principal principal, @NotNull Filter filter, int importBehavior); static Privilege[] privilegesFromOakNames(@NotNull Set<String> privilegeNames, @NotNull PrivilegeManager privilegeManager, @NotNull NamePathMapper namePathMapper); static boolean hasModAcPermission(@NotNull PermissionProvider permissionProvider, @NotNull String effectivePath);  }
@Test public void testIsPrincipalPolicyTreeNotExists() { assertFalse(Utils.isPrincipalPolicyTree(mockTree(false, NT_REP_PRINCIPAL_POLICY, REP_PRINCIPAL_POLICY))); }
@Test public void testIsPrincipalPolicyTreeWrongName() { assertFalse(Utils.isPrincipalPolicyTree(mockTree(true, REP_RESTRICTIONS, NT_REP_PRINCIPAL_POLICY))); }
@Test public void testIsPrincipalPolicyTreeWrongType() { assertFalse(Utils.isPrincipalPolicyTree(mockTree(true, REP_PRINCIPAL_POLICY, NT_REP_RESTRICTIONS))); }
@Test public void testIsPrincipalPolicyTreeMissingType() { assertFalse(Utils.isPrincipalPolicyTree(mockTree(true, REP_PRINCIPAL_POLICY, null))); }
@Test public void testIsPrincipalPolicyTreeWrongNameType() { assertFalse(Utils.isPrincipalPolicyTree(mockTree(true, REP_RESTRICTIONS, NT_REP_RESTRICTIONS))); }
@Test public void testIsPrincipalPolicyTree() { assertTrue(Utils.isPrincipalPolicyTree(mockTree(true, REP_PRINCIPAL_POLICY, NT_REP_PRINCIPAL_POLICY))); }