EveryonePrincipal implements JackrabbitPrincipal, GroupPrincipal { @Override public int hashCode() { return NAME.hashCode(); } 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 testHashCode() { assertEquals(everyone.hashCode(), EveryonePrincipal.getInstance().hashCode()); }