public void testNobody() {
   System.out.println("testNobody");
   SimplePrincipal nobody = new SimplePrincipal("<NOBODY>");
   principal.addMember(nobody);
   assertTrue(
       "AnybodyPrincipal.isMember", principal.isMember(NobodyPrincipal.NOBODY_PRINCIPAL) == false);
 }
  /** Test of addMember method, of class org.jboss.security.NestablePrincipal. */
  public void testAddMember() {
    System.out.println("testAddMember");

    for (int p = 0; p < principals.length; p++) {
      Principal user = principals[p];
      principal.addMember(user);
      assertTrue("AddMember " + user, principal.isMember(user));
      testMembers();
    }
  }
 public void testAnybody() {
   System.out.println("testAnybody");
   principal.addMember(principals[0]);
   assertTrue("AnybodyPrincipal.isMember", principal.isMember(AnybodyPrincipal.ANYBODY_PRINCIPAL));
 }