@Test
public void iterator() {

    DataSeries series = new DataSeries();
    series.addPoint(1,2);
    series.addPoint(2,3);
    int count = 0;
    for (DataSeries.Point point : series) {
        count++;
    }
    assertEquals(2, count);
}