serialize an instance , restore it , and check for equality . concode_field_sep PlaceHolder placeHolder concode_field_sep void testCloning concode_elem_sep void testPublicCloneable concode_elem_sep void testHashCode concode_elem_sep void testEquals
void function ( ) { Stroke loc0 = new BasicStroke ( 2.0f ) ; XYPolygonAnnotation loc1 = new XYPolygonAnnotation ( new double [ ] { 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 } , loc0 , Color . red , Color . blue ) ; XYPolygonAnnotation loc2 = ( XYPolygonAnnotation ) TestUtilities . serialised ( loc1 ) ; assertEquals ( loc1 , loc2 ) ; }