@Test
public void testRemove_onlyMax() {

    final LatitudeRemover latitudeRemover = new LatitudeRemover(62.8, Double.NaN);
    final List<SamplingPoint> samples = new ArrayList<>();
    samples.add(new SamplingPoint(108.6, 64.5, 0, 0)); // keep
    samples.add(new SamplingPoint(109.7, 78.6, 0, 0)); // keep
    samples.add(new SamplingPoint(110.8, 19.4, 0, 0)); // remove
    samples.add(new SamplingPoint(111.9, -69.5, 0, 0)); // remove
    samples.add(new SamplingPoint(113.0, -12.5, 0, 0)); // remove
    latitudeRemover.remove(samples);
    assertEquals(2, samples.size());
    assertEquals(64.5, samples.get(0).getLat(), 1e-8);
    assertEquals(78.6, samples.get(1).getLat(), 1e-8);
}