### Question:
ProjectEventHandler { public void handleDeletion(String projectPath) { Project project = projectDAO.getProjectByFile(projectPath); if (project == null) { return; } project.setStatus(ProjectStatus.DELETED); } ProjectEventHandler(ProjectDAO projectDAO); void handleDeletion(String projectPath); void handleSnapshot(SnapshotInfo snapshot);  }### Answer:
@Test public void testHandleDeletionWithValidProject() { Mockito.doAnswer(new Answer() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { List<String> param = (List<String>) invocation.getArguments()[0]; assertEquals(0, param.size()); return null; } }).when(project).setProjectFiles(Mockito.anyListOf(String.class)); String filePath = "testCourse/testExercise1"; when(projectDAO.getProjectByFile(filePath)).thenReturn(project); handler.handleDeletion(filePath); verify(project, times(1)).setStatus(ProjectStatus.DELETED); }