@Test
public void testTrim() throws KlvDecodingException {

  double lat = 1;
  double lon = 2;
  klvHandler.accept(KlvUtilities.createTestFloat(LAT, lat));
  klvHandler.accept(KlvUtilities.createTestFloat(LON, lon));
  // this is the value that should get trimmed
  klvHandler.accept(KlvUtilities.createTestFloat(LAT, 3));
  klvHandler.trim();
  Map<String, List<Double>> data = klvHandler.getRawGeoData();
  assertThat(data.get(LAT), hasSize(1));
  assertThat(data.get(LON), hasSize(1));
  assertThat(data.get(LAT).get(0), is(closeTo(lat, EPSILON)));
  assertThat(data.get(LON).get(0), is(closeTo(lon, EPSILON)));
}