@Test
public void reducePathWhenClosedPolyLine() {

  float[][] given = {{0, 1}, {0.5f, 1}, {1, 3}, {1.5f, 4}, {2, 3}, {2, 0}, {0, 0}};
  float[][] expected = {{0, 1}, {0.5f, 1}, {1, 3}, {1.5f, 4.0f}, {2, 3}, {2, 0}, {0, 0}};
  convertToScreenCoordinates(given);
  convertToScreenCoordinates(expected);
  float[][] result = convertToArray(myReducer.reducePath(convertToPath(given), myConfig));
  assertPointsEquals(expected, result);
}