/** Two objects that are equal are required to return the same hashCode. */ public void testHashcode() { ImageTitle t1 = new ImageTitle(JFreeChart.INFO.getLogo()); ImageTitle t2 = new ImageTitle(JFreeChart.INFO.getLogo()); assertTrue(t1.equals(t2)); int h1 = t1.hashCode(); int h2 = t2.hashCode(); assertEquals(h1, h2); }