serialize an instance , restore it , and check for equality . concode_field_sep PlaceHolder placeHolder concode_field_sep void testCloning concode_elem_sep void testCloning2 concode_elem_sep void testHashcode concode_elem_sep void testEquals
void function ( ) { Stroke loc0 = new BasicStroke ( 1.23f ) ; LegendGraphic loc1 = new LegendGraphic ( new Rectangle2D . Double ( 1.0 , 2.0 , 3.0 , 4.0 ) , Color . black ) ; loc1 . setOutlineStroke ( loc0 ) ; LegendGraphic loc2 = ( LegendGraphic ) TestUtilities . serialised ( loc1 ) ; assertTrue ( loc1 . equals ( loc2 ) ) ; }