### Question:
XYTitleAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable { @Override public int hashCode() { int result = 193; result = HashUtilities.hashCode(result, this.anchor); result = HashUtilities.hashCode(result, this.coordinateType); result = HashUtilities.hashCode(result, this.x); result = HashUtilities.hashCode(result, this.y); result = HashUtilities.hashCode(result, this.maxWidth); result = HashUtilities.hashCode(result, this.maxHeight); result = HashUtilities.hashCode(result, this.title); return result; } XYTitleAnnotation(double x, double y, Title title);  XYTitleAnnotation(double x, double y, Title title,
            RectangleAnchor anchor); XYCoordinateType getCoordinateType(); double getX(); double getY(); Title getTitle(); RectangleAnchor getTitleAnchor(); double getMaxWidth(); void setMaxWidth(double max); double getMaxHeight(); void setMaxHeight(double max); @Override void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
                     ValueAxis domainAxis, ValueAxis rangeAxis,
                     int rendererIndex,
                     PlotRenderingInfo info); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }### Answer:
@Test public void testHashCode() { TextTitle t = new TextTitle("Title"); XYTitleAnnotation a1 = new XYTitleAnnotation(1.0, 2.0, t); XYTitleAnnotation a2 = new XYTitleAnnotation(1.0, 2.0, t); assertEquals(a1, a2); int h1 = a1.hashCode(); int h2 = a2.hashCode(); assertEquals(h1, h2); }