### Question:
FileTaskAccessor implements TaskAccessor { @Override public List<Task> loadTasks() { List<Task> tasks = new ArrayList<>(); File[] taskFiles = FileAccessSupport.getTaskFiles(DEFAULT_TASK_PATH); for (File taskFile : taskFiles) { Task task = FileParser.parseTask(taskFile, false); tasks.add(task); } return tasks; }  @Override List<Task> loadTasks(); @Override Task loadTaskByName(String taskName); @Override Host loadHostById(String hostId); @Override void createSnapshot(HostSnapshot snapshot); @Override void saveCrawledResult(CrawledResult crawledResult, List<ErrorPageDTO> errorPages); @Override HostResult getHostResult(String hostId); @Override List<ErrorPageDTO> getErrorPages(String hostId, int startPos, int size); @Override int getErrorPageNum(String hostId); @Override void rollbackHost(String hostId);  }### Answer:
@Test public void loadTasks() { List<Task> tasks = fileTaskLoader.loadTasks(); Assert.assertEquals(1, tasks.size()); }