### Question:
TextTitle extends Title implements Serializable, Cloneable, PublicCloneable { @Override public int hashCode() { int result = super.hashCode(); result = 29 * result + (this.text != null ? this.text.hashCode() : 0); result = 29 * result + (this.font != null ? this.font.hashCode() : 0); result = 29 * result + (this.paint != null ? this.paint.hashCode() : 0); result = 29 * result + (this.backgroundPaint != null ? this.backgroundPaint.hashCode() : 0); return result; } TextTitle();  TextTitle(String text);  TextTitle(String text, Font font);  TextTitle(String text, Font font, Paint paint,
                     RectangleEdge position,
                     HorizontalAlignment horizontalAlignment,
                     VerticalAlignment verticalAlignment,
                     RectangleInsets padding); String getText(); void setText(String text); HorizontalAlignment getTextAlignment(); void setTextAlignment(HorizontalAlignment alignment); Font getFont(); void setFont(Font font); Paint getPaint(); void setPaint(Paint paint); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); String getToolTipText(); void setToolTipText(String text); String getURLText(); void setURLText(String text); boolean getExpandToFitSpace(); void setExpandToFitSpace(boolean expand); int getMaximumLinesToDisplay(); void setMaximumLinesToDisplay(int max); @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(); static final Font DEFAULT_FONT; static final Paint DEFAULT_TEXT_PAINT; }### Answer:
@Test public void testHashcode() { TextTitle t1 = new TextTitle(); TextTitle t2 = new TextTitle(); assertEquals(t1, t2); int h1 = t1.hashCode(); int h2 = t2.hashCode(); assertEquals(h1, h2); }