@Test
public void reduceDataForSteppedLine() {

  List<SeriesData<Long>> data = new ImmutableList.Builder<SeriesData<Long>>()
    .add(new SeriesData<>(0, 10L))
    .add(new SeriesData<>(1, 10L))
    .add(new SeriesData<>(2, 13L))
    .add(new SeriesData<>(3, 13L))
    .add(new SeriesData<>(4, 13L))
    .add(new SeriesData<>(5, 13L))
    .add(new SeriesData<>(6, 5L))
    .add(new SeriesData<>(7, 5L)).build();
  List<SeriesData<Long>> expected = new ImmutableList.Builder<SeriesData<Long>>()
    .add(new SeriesData<>(0, 10L))
    .add(new SeriesData<>(2, 13L))
    .add(new SeriesData<>(6, 5L))
    .add(new SeriesData<>(7, 5L)).build();
  myConfig.setStepped(true);
  List<SeriesData<Long>> result = myReducer.reduceData(data, myConfig);
  assertSeriesEquals(expected, result);
}