### Question:
ProjectTaskService { public void saveProject( Project project ) { entityManager.persist(project); }  void saveProject( Project project ); void updateProject( Project project ); void removeProject( Project project ); List<Project> findAllProjects(); List<Project> findProjectById( Integer id ); List<Task> findTaskById( Integer id ); List<Task> findTasksByProjectId( Integer id ); void clearDatabase();  }### Answer:
@Test public void shouldSaveProject() { Project proj1 = createProjectAndTasks(3); service.saveProject(proj1); System.out.printf("***** proj1=%s\n", proj1); assertNotNull( proj1.getId()); assertFalse( proj1.getTasks().isEmpty()); assertThat( proj1.getTasks().size(), is(3)); for ( Task task: proj1.getTasks()) { assertNotNull( task.getId()); assertThat( task.getProject().getId(), is( proj1.getId()) ); } }