@Test
public void userHasActiveAccessReturnsFalseWhenNoAccessIntervalPresent() {

    // given
    given(userMock.getLatestAccessInterval()).willReturn(Optional.empty());
    // when
    boolean actualHasAccess = accessService.userHasActiveAccessInterval(userMock);
    // then
    assertThat(actualHasAccess).isFalse();
}