### Question:
LegendGraphic extends AbstractBlock implements Block, 
        PublicCloneable { public void setOutlineStroke(Stroke stroke) { this.outlineStroke = stroke; } LegendGraphic(Shape shape, Paint fillPaint); boolean isShapeVisible(); void setShapeVisible(boolean visible); Shape getShape(); void setShape(Shape shape); boolean isShapeFilled(); void setShapeFilled(boolean filled); Paint getFillPaint(); void setFillPaint(Paint paint); GradientPaintTransformer getFillPaintTransformer(); void setFillPaintTransformer(GradientPaintTransformer transformer); boolean isShapeOutlineVisible(); void setShapeOutlineVisible(boolean visible); Paint getOutlinePaint(); void setOutlinePaint(Paint paint); Stroke getOutlineStroke(); void setOutlineStroke(Stroke stroke); RectangleAnchor getShapeAnchor(); void setShapeAnchor(RectangleAnchor anchor); RectangleAnchor getShapeLocation(); void setShapeLocation(RectangleAnchor location); boolean isLineVisible(); void setLineVisible(boolean visible); Shape getLine(); void setLine(Shape line); Paint getLinePaint(); void setLinePaint(Paint paint); Stroke getLineStroke(); void setLineStroke(Stroke stroke); @Override Size2D arrange(Graphics2D g2, RectangleConstraint constraint); @Override void draw(Graphics2D g2, Rectangle2D area); @Override Object draw(Graphics2D g2, Rectangle2D area, Object params); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }### Answer:
@Test public void testSerialization() { Stroke s = new BasicStroke(1.23f); LegendGraphic g1 = new LegendGraphic(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), Color.BLACK); g1.setOutlineStroke(s); LegendGraphic g2 = (LegendGraphic) TestUtils.serialised(g1); assertEquals(g1, g2); }