@Test
public void labels() {

    final List<MLocation> points = Arrays.asList(
            point(0, FlightMode.MODE_GROUND),
            point(1000, FlightMode.MODE_GROUND),
            point(2000, FlightMode.MODE_WINGSUIT),
            point(3000, FlightMode.MODE_WINGSUIT),
            point(4000, FlightMode.MODE_WINGSUIT),
            point(5000, FlightMode.MODE_CANOPY),
            point(6000, FlightMode.MODE_CANOPY),
            point(7000, FlightMode.MODE_GROUND)
    );
    final TrackLabels labels = TrackLabels.from(points);
    assertNotNull(labels);
    assertEquals(2, labels.exit);
    assertEquals(4, labels.deploy);
    assertEquals(6, labels.land);
}