@Test
public void getApplicationsOfUsers() {

    // given
    var sort = Sort.unsorted();
    var users = Set.of(userMock);
    var expectedApplication = new ProjectApplication(projectMock, "Comment", userMock, LocalDateTime.now(clock));
    given(applicationRepoMock.findAllByUserIn(users, sort)).willReturn(Collections.singletonList(expectedApplication));
    // when
    var actualApplications = applicationService.getApplicationsOfUsers(users, sort);
    // then
    assertThat(actualApplications).containsExactlyInAnyOrder(expectedApplication);
    verify(applicationRepoMock).findAllByUserIn(users, sort);
}