/**
* Confirm that the equals method can distinguish all the required fields.
*/
public void testEquals() {
ChartRenderingInfo i1 = new ChartRenderingInfo();
ChartRenderingInfo i2 = new ChartRenderingInfo();
assertTrue(i1.equals(i2));
i1.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
assertFalse(i1.equals(i2));
i2.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
assertTrue(i1.equals(i2));
i1.getPlotInfo().setDataArea(new Rectangle(1, 2, 3, 4));
assertFalse(i1.equals(i2));
i2.getPlotInfo().setDataArea(new Rectangle(1, 2, 3, 4));
assertTrue(i1.equals(i2));
StandardEntityCollection e1 = new StandardEntityCollection();
e1.add(new ChartEntity(new Rectangle(1, 2, 3, 4)));
i1.setEntityCollection(e1);
assertFalse(i1.equals(i2));
StandardEntityCollection e2 = new StandardEntityCollection();
e2.add(new ChartEntity(new Rectangle(1, 2, 3, 4)));
i2.setEntityCollection(e2);
}