### Question:
TodoService { public void deleteTodo(Long id) { todoRepository.delete(id); } @Autowired  TodoService(TodoRepository todoRepository); void saveTodo(Todo todo); List<Todo> getTodos(); List<Todo> getActive(); List<Todo> getCompleted(); void deleteTodo(Long id); void toggleStatus(Long id); void markAllCompleted(); void editTodo(Long id); void updateTodo(Long id, String itemText); @Transactional void clearCompleted();  }### Answer:
@Test public void ensureDeleteDelegatesToRepository() throws Exception { service.deleteTodo(123L); verify(todoRepository).delete(123L); }