question: public static void checkSerializedEquality ( Object object ) { Object object2 = serializeAndRecover ( object ) ; Assert . assertEquals ( "Equals check" , object , object2 ) ; Assert . assertEquals ( "HashCode check" , object . hashCode ( ) , object2 . hashCode ( ) ) ; }
target:  Verifies that serialization preserves equals and hashCode. Serializes the object, then recovers it and checks equals and hash code.