assertFalse("Wrong equals implementation, different types are recognized as equals ",ident1.equals(new Integer(1)));
assertFalse("Wrong equals implementation, different users are recognized as equals ",ident1.equals(ident2));
assertFalse("Wrong equals implementation, null value is recognized as equals ",ident1.equals(null));
assertTrue("Wrong equals implementation, same users are NOT recognized as equals ",ident1.equals(ident1));
Manager ma = ManagerFactory.getManager();
Identity ident1_2 = ma.findIdentityByName(identityTest1Name);
assertTrue("Wrong equals implementation, same users are NOT recognized as equals ",ident1.equals(ident1_2));
}
public void testHashCode() {
assertTrue("Wrong hashCode implementation, same users have NOT same hash-code ",ident1.hashCode() == ident1.hashCode());