@Test
public void giveUserAccessUntilThrowsExceptionWhenTimeIsInThePast() {

    // given
    var endTime = LocalDateTime.now(clock).minus(1L, ChronoUnit.MINUTES);
    // when
    assertThatThrownBy(() -> accessService.giveUserAccessUntil(userMock, endTime))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("End date must lie in the future!");
}