/**
* Confirm that the equals method can distinguish all the required fields.
*/
public void testEquals() {
XIntervalSeriesCollection c1 = new XIntervalSeriesCollection();
XIntervalSeriesCollection c2 = new XIntervalSeriesCollection();
assertEquals(c1, c2);
// add a series
XIntervalSeries s1 = new XIntervalSeries("Series");
s1.add(1.0, 1.1, 1.2, 1.3);
c1.addSeries(s1);
assertFalse(c1.equals(c2));
XIntervalSeries s2 = new XIntervalSeries("Series");
s2.add(1.0, 1.1, 1.2, 1.3);
c2.addSeries(s2);
assertTrue(c1.equals(c2));
// add an empty series
c1.addSeries(new XIntervalSeries("Empty Series"));
assertFalse(c1.equals(c2));
c2.addSeries(new XIntervalSeries("Empty Series"));
assertTrue(c1.equals(c2));
}