/**
* Confirm that cloning works.
*/
public void testCloning() {
CustomXYToolTipGenerator g1 = new CustomXYToolTipGenerator();
CustomXYToolTipGenerator g2 = null;
try {
g2 = (CustomXYToolTipGenerator) g1.clone();
}
catch (CloneNotSupportedException e) {
System.err.println("CustomXYItemLabelGenerator.testCloning: failed to clone.");
}
assertTrue(g1 != g2);
assertTrue(g1.getClass() == g2.getClass());
assertTrue(g1.equals(g2));
}