@Test(expected = IllegalArgumentException.class)
public void shouldNotCreateProjectIfItExist() {

  String projectName = "project1";
  when(projectRepository.existsById(projectName)).thenReturn(true);
  projectService.createProject(projectName);
}