### Question:
CourseDAOMemory implements CourseDAO { @Override public void delete(int courseId) { for (Course c : courseList) { if (c.getId() == courseId) { courseList.remove(c); break; } } } CourseDAOMemory(); @Override Course find(int courseId); @Override void save(Course course); @Override void delete(int courseId); @Override List<Course> findAll(); @Override int nextId();  }### Answer:
@Test public void delete() { Course course = new Course("TEST", "TEST", 1, 1); daoMemory.save(course); daoMemory.delete(course.getId()); assertTrue(daoMemory.findAll().isEmpty()); }