@Test
public void reducePathWhenSteppedLine() {

  float[][] given = {{0, 5}, {0.1f, 5}, {0.1f, 4}, {0.2f, 4}, {0.2f, 6}, {0.3f, 6}, {0.3f, 4.1f}, {0.5f, 4.1f}, {0.5f, 4.9f}, {3, 4.9f}, {3, 4.8f}};
  float[][] expected = {{0, 5}, {0.2f, 5},  {0.2f, 4}, {0.2f, 6}, {0.5f, 6}, {0.5f, 4.9f}, {3, 4.9f}, {3, 4.8f}};
  convertToScreenCoordinates(given);
  convertToScreenCoordinates(expected);
  myConfig.setStepped(true);
  float[][] result = convertToArray(myReducer.reducePath(convertToPath(given), myConfig));
  assertPointsEquals(expected, result);
}