@Test
public void equalsReturnsFalseForDifferentStartTimes() {

    // given
    var accessIntervalId = 1L;
    var userId = "user";
    var startTime = LocalDateTime.now(clock);
    var otherStartTime = LocalDateTime.now(clock).plus(10L, ChronoUnit.MINUTES);
    var endTime = LocalDateTime.now(clock).plus(1L, ChronoUnit.DAYS);
    given(userMock.getId()).willReturn(userId);
    var accessInterval = new AccessInterval(userMock, startTime, endTime);
    accessInterval.id = accessIntervalId;
    var otherAccessInterval = new AccessInterval(userMock, otherStartTime, endTime);
    otherAccessInterval.id = accessIntervalId;
    // when
    boolean actualEquals = accessInterval.equals(otherAccessInterval);
    // then
    assertThat(actualEquals).isFalse();
}