@Test
public void saveAll() {

    // given
    List<Project> expectedProjects = Collections.singletonList(projectMock);
    given(projectRepo.saveAll(expectedProjects)).willReturn(expectedProjects);
    // when
    List<Project> savedProjects = projectService.saveAll(expectedProjects);
    // then
    assertThat(savedProjects).isEqualTo(expectedProjects);
    verify(projectRepo).saveAll(expectedProjects);
}