@Test
public void testFilter_threePoints_overlapping() {

    final List<SamplingPoint> sampleList = new ArrayList<>();
    addSamplePoint(100, 100, sampleList);
    addSamplePoint(105, 101, sampleList);
    addSamplePoint(106, 107, sampleList);
    final List<SamplingPoint> filteredList = filter.apply(sampleList);
    assertNotNull(filteredList);
    assertEquals(2, filteredList.size());
    assertSamplePointAt(100, 100, 0, filteredList);
    assertSamplePointAt(106, 107, 1, filteredList);
}