### Question:
ProjectDAO { public Project getProjectByExercise(Exercise exercise) { for (Project project : projects) { if (project.getExercise().equals(exercise)) { return project; } } return null; } ProjectDAO(DataSource<Project> dataSource); void loadProjects(); List<Project> getProjects(); void setProjects(List<Project> projects); void addProject(Project project); Project getProjectByFile(String filePath); Project getProjectByExercise(Exercise exercise); void save();  }### Answer:
@Test public void getProjectByExerciseReturnsNullIfExerciseNotFound() { assertEquals(null, dao.getProjectByExercise(new Exercise("asdasd", "asdasd"))); }