}
}
public void testRemoveAndAddEqualElementNonKeyModified() {
deleteMembership( getUser(), getGroup(), getMembership() );
Membership membershipNew = createMembership( "membership" );
addMembership( getUser(), getGroup(), membershipNew );
membershipNew.setName( "membership1" );
Session s = openSession();
s.beginTransaction();
try {
// The new membership is transient (it has a null surrogate ID), so