def METHOD_NAME(self):
    # 4-seg m-shape
    waypoints = [
        {"lat": 0, "lon": 0},
        {"lat": 1, "lon": 1},
        {"lat": 0, "lon": 2},
        {"lat": 1, "lon": 3},
        {"lat": 0, "lon": 4},
    ]
    trajectory = Trajectory(waypoints, sample_count=33)
    self.assertEqual(trajectory.length, 5.6568542494923806)
    self.assertEqual(trajectory.sample_count, 33)
    self.assertEqual(
        trajectory.sampled_points[31],
        {"lat": 0.12499999999999989, "lon": 3.875},
    )