@Test
public void reducePathClosedPolylineLastPointsShouldRemain() {

  float[][] given = {{0, 4}, {0.5f, 5}, {1.1f, 0}, {1.2f, 0}, {1.3f, 5}, {1.4f, 5}, {1.9f, 5}, {1.9f, 0}, {0, 0}};
  float[][] expected = {{0, 4}, {0.5f, 5}, {1.1f, 0}, {1.3f, 5}, /*should peek up right most minimum*/ {1.9f, 0}, {0, 0}};
  convertToScreenCoordinates(given);
  convertToScreenCoordinates(expected);
  float[][] result = convertToArray(myReducer.reducePath(convertToPath(given), myConfig));
  assertPointsEquals(expected, result);
}