@Test
void accumulateValueTo_whenXBeyondRange_thenThrowsException() {

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