MaxPointsOnLine { public int maxPoints(Point[] points) { int max = 0; for (int i = 0; i < points.length; i++) { int maxFromi = maxPoints(points, i); if (maxFromi > max) { max = maxFromi; } } return max; }  int maxPoints(Point[] points);  }
@Test(dataProvider = "points") public void test(Point[] points, int expectedMax) { assertEquals(new MaxPointsOnLine().maxPoints(points), expectedMax); }