### Question:
BoxAndWhiskerItem implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BoxAndWhiskerItem)) { return false; } BoxAndWhiskerItem that = (BoxAndWhiskerItem) obj; if (!ObjectUtils.equal(this.mean, that.mean)) { return false; } if (!ObjectUtils.equal(this.median, that.median)) { return false; } if (!ObjectUtils.equal(this.q1, that.q1)) { return false; } if (!ObjectUtils.equal(this.q3, that.q3)) { return false; } if (!ObjectUtils.equal(this.minRegularValue, that.minRegularValue)) { return false; } if (!ObjectUtils.equal(this.maxRegularValue, that.maxRegularValue)) { return false; } if (!ObjectUtils.equal(this.minOutlier, that.minOutlier)) { return false; } if (!ObjectUtils.equal(this.maxOutlier, that.maxOutlier)) { return false; } if (!ObjectUtils.equal(this.outliers, that.outliers)) { return false; } return true; } BoxAndWhiskerItem(Number mean,
                             Number median,
                             Number q1,
                             Number q3,
                             Number minRegularValue,
                             Number maxRegularValue,
                             Number minOutlier,
                             Number maxOutlier,
                             List<Number> outliers);  BoxAndWhiskerItem(double mean, double median, double q1, double q3,
            double minRegularValue, double maxRegularValue, double minOutlier,
            double maxOutlier, List<Number> outliers); Number getMean(); Number getMedian(); Number getQ1(); Number getQ3(); Number getMinRegularValue(); Number getMaxRegularValue(); Number getMinOutlier(); Number getMaxOutlier(); List<Number> getOutliers(); @Override String toString(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testEquals() { BoxAndWhiskerItem i1 = new BoxAndWhiskerItem( 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, new ArrayList() ); BoxAndWhiskerItem i2 = new BoxAndWhiskerItem( 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, new ArrayList() ); assertEquals(i1, i2); assertEquals(i2, i1); }