DataSeries implements Iterable<DataSeries.Point> { public void reset() { n = 0; }  void addPoint(double x, double y); int size(); void reset(); @NonNull Iterator<Point> iterator(); @NonNull @Override String toString();  }
@Test public void reset() { DataSeries series = new DataSeries(); assertEquals(0, series.size()); series.addPoint(1,2); assertEquals(1, series.size()); series.reset(); assertEquals(0, series.size()); }