@Test
public void removeOldBookmarksAndApplications() {

    // given
    var firstIntervalEndTime = LocalDateTime.now(clock).minus(29L, ChronoUnit.DAYS);
    var secondIntervalEndTime = LocalDateTime.now(clock).plus(2L, ChronoUnit.DAYS);
    given(airMock.findAllLatestIntervals()).willReturn(List.of(accessIntervalMock, accessIntervalMock));
    given(accessIntervalMock.getEndTime()).willReturn(firstIntervalEndTime, secondIntervalEndTime);
    given(accessIntervalMock.getUser()).willReturn(userMock);
    // when
    cleaner.removeOldBookmarksAndApplications();
    // then
    verify(bookmarkServiceMock).removeAllBookmarksOfUser(userMock);
    verify(userServiceMock).removeAllApplicationsOfUser(userMock);
}