@Test
public void reducePathFirstAndLastPointsShouldRemain() {

  float[][] given = {{1, 4}, {1.2f, 6}, {1.3f, 0}, {1.4f, 2}, {1.5f, 0}, {1.7f, 4}};
  float[][] expected = {{1, 4}, {1.2f, 6}, {1.5f, 0}, {1.7f, 4}};
  convertToScreenCoordinates(given);
  convertToScreenCoordinates(expected);
  float[][] result = convertToArray(myReducer.reducePath(convertToPath(given), myConfig));
  assertPointsEquals(expected, result);
}