/**
* Tests that {@link RoleImpl#hashCode()} yields predictable results.
*/
public void testHashCodeOk() {
RoleImpl role1 = new RoleImpl("foo");
RoleImpl role2 = new RoleImpl("foo");
RoleImpl role3 = new RoleImpl("bar");
assertTrue(role1.hashCode() == role2.hashCode());
assertFalse(role1.hashCode() == role3.hashCode());
assertFalse(role2.hashCode() == role3.hashCode());
}