### Question:
MatrixSeriesCollection extends AbstractXYZDataset implements XYZDataset, PublicCloneable, Serializable { public void addSeries(MatrixSeries series) { ParamChecks.nullNotPermitted(series, "series"); this.seriesList.add(series); series.addChangeListener(this); fireDatasetChanged(); } MatrixSeriesCollection();  MatrixSeriesCollection(MatrixSeries series); @Override int getItemCount(int seriesIndex); MatrixSeries getSeries(int seriesIndex); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int seriesIndex); @Override Number getX(int seriesIndex, int itemIndex); @Override Number getY(int seriesIndex, int itemIndex); @Override Number getZ(int seriesIndex, int itemIndex); void addSeries(MatrixSeries series); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); void removeAllSeries(); void removeSeries(MatrixSeries series); void removeSeries(int seriesIndex);  }### Answer:
@Test public void testSerialization() { MatrixSeries s1 = new MatrixSeries("Series", 2, 3); s1.update(0, 0, 1.1); MatrixSeriesCollection c1 = new MatrixSeriesCollection(); c1.addSeries(s1); MatrixSeriesCollection c2 = (MatrixSeriesCollection) TestUtils.serialised(c1); assertEquals(c1, c2); }