@Test
public void shouldCreateProjectIfItDoesntExist() {

  String projectName = "project1";
  Project project = new Project(projectName);
  when(projectRepository.saveAndFlush(project)).thenReturn(project);
  projectService.createProject(projectName);
  verify(projectRepository, times(1)).saveAndFlush(project);
}