### Question:
LegendGraphic extends AbstractBlock implements Block, 
        PublicCloneable { @Override public int hashCode() { int result = 193; result = 37 * result + ObjectUtils.hashCode(this.fillPaint); return result; } 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 testHashcode() { LegendGraphic g1 = new LegendGraphic(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), Color.BLACK); LegendGraphic g2 = new LegendGraphic(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), Color.BLACK); assertEquals(g1, g2); int h1 = g1.hashCode(); int h2 = g2.hashCode(); assertEquals(h1, h2); }