@Test
public void getLatestAccessIntervalReturnsNullWhenCollectionContainsNoElement() {

    // given
    User user = new User("user");
    // when
    Optional<AccessInterval> actualAccessIntervalOptional = user.getLatestAccessInterval();
    // then
    assertThat(actualAccessIntervalOptional).isNotPresent();
}