Util implements AccessControlConstants { static void checkValidPrincipal(@Nullable Principal principal, @NotNull PrincipalManager principalManager) throws AccessControlException { checkValidPrincipal(principal, principalManager, ImportBehavior.ABORT); } private  Util();   }
@Test(expected = IllegalArgumentException.class) public void testCheckValidPrincipalInvalidBehavior() throws Exception { Util.checkValidPrincipal(() -> "name", getPrincipalManager(root), ImportBehavior.IGNORE-1); }
@Test(expected = AccessControlException.class) public void testCheckValidPrincipalForNull() throws Exception { Util.checkValidPrincipal(null, getPrincipalManager(root)); }
@Test(expected = AccessControlException.class) public void testCheckValidPrincipalForEmpty() throws Exception { Util.checkValidPrincipal(new PrincipalImpl(""), getPrincipalManager(root)); }