@Test
public void shouldReturnNONEIntersectionTypeWhenNoIntersectionPresent() {

    // given
    ContinuousSpaceSegment<Integer, String> segment = new ContinuousSpaceSegment<Integer, String>(1, 10, "A");
    // when
    ContinuousSpaceSegment.IntersectionType intersection = segment.intersects(20, 30);
    // then
    assertThat(intersection).isSameAs(ContinuousSpaceSegment.IntersectionType.NONE);
}