@Test
public void shouldReturnFalseIfSegmentDoesNotContainPoint() {

    // given
    ContinuousSpaceSegment<Integer, String> segment = new ContinuousSpaceSegment<Integer, String>(1, 10, "A");
    // when
    boolean contains = segment.contains(20);
    // then
    assertThat(contains).isFalse();
}