@Test
public void shouldReturnCONTAINSIntersectionTypeWhenOtherSegmentIsContainedWithingSegment() {

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