class ConstantSpeedTraversalSection implements TraversalSection, Serializable {

    @Override
    public double getDuration() {
        return time;
    }

}

class ConstantSpeedTraversalSectionTest {

    private static final double DURATION;
    private static final double DISTANCE;
    private static final double SPEED;
    private final ConstantSpeedTraversalSection traversalSection;

    @Test
    @DisplayName("getDuration() method")
    void testGetDuration_returnsFullDuration() {

        assertThat(traversalSection.getDuration()).isEqualTo(DURATION);
    }

}