### Question:
StandardCategoryToolTipGenerator extends AbstractCategoryItemLabelGenerator implements CategoryToolTipGenerator, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardCategoryToolTipGenerator)) { return false; } return super.equals(obj); } StandardCategoryToolTipGenerator();  StandardCategoryToolTipGenerator(String labelFormat,
                                            NumberFormat formatter);  StandardCategoryToolTipGenerator(String labelFormat,
                                            DateFormat formatter); @Override String generateToolTip(CategoryDataset dataset,
                                  int row, int column); @Override boolean equals(Object obj); static final String DEFAULT_TOOL_TIP_FORMAT_STRING; }### Answer:
@Test public void testEquals() { StandardCategoryToolTipGenerator g1 = new StandardCategoryToolTipGenerator(); StandardCategoryToolTipGenerator g2 = new StandardCategoryToolTipGenerator(); assertEquals(g1, g2); assertEquals(g2, g1); g1 = new StandardCategoryToolTipGenerator("{0}", new DecimalFormat("0.000")); assertFalse(g1.equals(g2)); g2 = new StandardCategoryToolTipGenerator("{0}", new DecimalFormat("0.000")); assertEquals(g1, g2); g1 = new StandardCategoryToolTipGenerator("{1}", new DecimalFormat("0.000")); assertFalse(g1.equals(g2)); g2 = new StandardCategoryToolTipGenerator("{1}", new DecimalFormat("0.000")); assertEquals(g1, g2); g1 = new StandardCategoryToolTipGenerator("{2}", new SimpleDateFormat("d-MMM")); assertFalse(g1.equals(g2)); g2 = new StandardCategoryToolTipGenerator("{2}", new SimpleDateFormat("d-MMM")); assertEquals(g1, g2); }
@Test public void testEquals1481087() { StandardCategoryToolTipGenerator g1 = new StandardCategoryToolTipGenerator("{0}", new DecimalFormat("0.00")); StandardCategoryItemLabelGenerator g2 = new StandardCategoryItemLabelGenerator("{0}", new DecimalFormat("0.00")); assertFalse(g1.equals(g2)); }