void () { CategoryLineDataset<Double> dataset = LineDataset.of(-1.0, 0.0, 1.0, 2.0, 3.0); Iterable<Coordinates<Integer, Double>> data = dataset.getData(); Iterator<Coordinates<Integer, Double>> iterator = data.iterator(); Assert.assertTrue(data instanceof ArrayList); Assert.assertEquals(Coordinates.of(0, -1.0), iterator.next()); Assert.assertEquals(Coordinates.of(1, 0.0), iterator.next()); Assert.assertEquals(Coordinates.of(2, 1.0), iterator.next()); Assert.assertEquals(Coordinates.of(3, 2.0), iterator.next()); Assert.assertEquals(Coordinates.of(4, 3.0), iterator.next()); Assert.assertFalse(iterator.hasNext()); }