EveryonePrincipal implements JackrabbitPrincipal, GroupPrincipal { @Override public boolean isMember(@NotNull Principal member) { return !member.equals(this); } private  EveryonePrincipal(); static EveryonePrincipal getInstance(); @Override String getName(); @Override boolean isMember(@NotNull Principal member); @NotNull @Override Enumeration<? extends Principal> members(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final String NAME; }
@Test public void testIsMember() { assertTrue(everyone.isMember(new PrincipalImpl("test"))); }
@Test public void testIsMemberSelf() { assertFalse(everyone.isMember(everyone)); }