TaskManager { public void removeTask(AbstractTask task) { tasks.remove(task); runningTasks.remove(task); if(controller == null) { return; } controller.removeTaskFromView(task); AgentManager.getInstance().removeTask(task); } TaskManager(); void setController(TaskViewerController controller); void refresh(); void setInstance(TaskManager taskManager); static TaskManager getInstance(); void addTask(AbstractTask task); @SuppressWarnings("unchecked") List<AbstractTask> listTasks(); void moveTask(AbstractTask task, String direction); boolean contains(AbstractTask task); boolean conflictingTasks(AbstractTask task); boolean hasTasks(); void removeTask(AbstractTask task); AbstractTask getTask(Agent agent); void updateTaskRoles();  }
@Test public void removeTaskTest() { }