/**
* Confirm that cloning works.
*/
public void testCloning() {
SymbolicXYItemLabelGenerator g1 = new SymbolicXYItemLabelGenerator();
SymbolicXYItemLabelGenerator g2 = null;
try {
g2 = (SymbolicXYItemLabelGenerator) g1.clone();
}
catch (CloneNotSupportedException e) {
e.printStackTrace();
}
assertTrue(g1 != g2);
assertTrue(g1.getClass() == g2.getClass());
assertTrue(g1.equals(g2));
}