ConstantJerkTraversalSection implements TraversalSection { @Override public double getDuration() { return duration; } ConstantJerkTraversalSection(
            double duration,
            double distance,
            double initialSpeed,
            double finalSpeed,
            double initialAcceleration,
            double finalAcceleration,
            double jerk); @Override double getDuration(); @Override double getTotalDistance(); @Override double getTimeAtDistance(@Nonnegative double distance); @Override double getDistanceAtTime(@Nonnegative double time); @Override double getSpeedAtTime(@Nonnegative double time); @Override double getAccelerationAtTime(@Nonnegative double time); @Override boolean isConstantAcceleration(); @Override boolean isAccelerating(); @Override boolean isDecelerating(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test @DisplayName("getDuration() method") void testGetDuration_returnsFullDuration() { assertThat(jerkUpAcceleratingSection.getDuration()).isEqualTo(DURATION); assertThat(jerkDownAcceleratingSection.getDuration()).isEqualTo(DURATION); assertThat(jerkUpDeceleratingSection.getDuration()).isEqualTo(DURATION); assertThat(jerkDownDeceleratingSection.getDuration()).isEqualTo(DURATION); }