@Test
void getValueAt_whenXWithinRange_thenReturnsExpectedValue() {

    double result = SegmentGraphUtilities.getValueAt(sections, Section::xExtent, Section::extrapolateValue, 7.7);
    assertThat(result).isCloseTo(1.4, within(1e-6));
}