@Test
public void shouldReturnPlusOneWhenOtherSegmentIsGreaterThanSegment() {

    // given
    ContinuousSpaceSegment<Integer, String> segment = new ContinuousSpaceSegment<Integer, String>(10, 20, "A");
    ContinuousSpaceSegment<Integer, String> other = new ContinuousSpaceSegment<Integer, String>(5, 15, "A");
    // when
    int result = segment.compareTo(other);
    // then
    assertThat(result).isEqualTo(1);
}