@Test
public void getProjectsForUserReturnsAllProjectsWhenUserIsManager() {

    // given
    var expectedSpecification = new ProjectSpecification(EXCLUDED_STATUS, Set.of(), null);
    var sort = Sort.unsorted();
    var expectedProjects = List.of(projectMock);
    given(userServiceMock.userIsManager(userMock)).willReturn(true);
    given(projectRepoMock.findAll(expectedSpecification, sort)).willReturn(expectedProjects);
    // when
    var actualProjects = userProjectService.getProjectsForUser(userMock, sort);
    // then
    assertThat(actualProjects).isEqualTo(expectedProjects);
}