serializes and deserializes the specified object and verifies that the re-serialized object is equal to the provided object , that the hashcodes are identical , and that the class of the re-serialized object is identical to that of the original . gwt warning : under gwt , this method simply returns its input , as proper gwt serialization tests require more setup . this no-op behavior allows test authors to intersperse serializabletester calls withother , gwt-compatible tests . note that the specified object may not be known by the compiler to be a java.io.serializable instance , and is thus declared an object . for example , it might be declared as a list . note also that serialization is not in general required to return an object that is @linkplain object #equals equal to the original , nor is itrequired to return even an object of the same class . for example , if sublists of mylist instances were serializable , those sublistsmight implement a private mysublist type but serialize as a plain mylist to save space . so long as mylist has all the publicsupertypes of mysublist , this is safe . for these cases , for which reserializeandassert is too strict , use #reserialize . concode_field_sep PlaceHolder placeHolder concode_field_sep T reserialize
T function ( T arg0 ) { T loc0 = reserialize ( arg0 ) ; new EqualsTester ( ) . addEqualityGroup ( arg0 , loc0 ) . testEquals ( ) ; Assert . assertEquals ( arg0 . getClass ( ) , loc0 . getClass ( ) ) ; return loc0 ; }