@Test
public void autoTrim() {

    List<MLocation> untrimmed = new ArrayList<>();
    addPoints(untrimmed, 0, 100);
    addPoints(untrimmed, -20, 100);
    addPoints(untrimmed, 0, 100);
    List<MLocation> trimmed = TrackDataTrimmer.autoTrim(untrimmed);
    assertEquals(200, trimmed.size());
}