@Test
void getValueAt_whenXBeyondRange_thenThrowsException() {

    assertThatThrownBy(() -> SegmentGraphUtilities.getValueAt(sections, Section::xExtent, Section::extrapolateValue, 100000))
            .isInstanceOf(IllegalStateException.class);
}