/** 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));
 }
 /** Simple check that hashCode is implemented. */
 public void testHashCode() {
   SymbolicXYItemLabelGenerator g1 = new SymbolicXYItemLabelGenerator();
   SymbolicXYItemLabelGenerator g2 = new SymbolicXYItemLabelGenerator();
   assertTrue(g1.equals(g2));
   assertTrue(g1.hashCode() == g2.hashCode());
 }
 /** Tests the equals method. */
 public void testEquals() {
   SymbolicXYItemLabelGenerator g1 = new SymbolicXYItemLabelGenerator();
   SymbolicXYItemLabelGenerator g2 = new SymbolicXYItemLabelGenerator();
   assertTrue(g1.equals(g2));
   assertTrue(g2.equals(g1));
 }