### Question:
TaskManager extends AbstractMongoManager { public Collection<TaskPojo> getTasks() { synchronized ( dataMap ) { return dataMap.values(); } } TaskManager(); static TaskManager getInstance(); void reload(); TaskPojo getTaskById(String id); void setTaskById(TaskPojo task); Collection<TaskPojo> getTasks(); Collection<TaskPojo> assignNewTask(TaskType type, User user); List<TaskPojo> assignNewTask(TaskType type, User user, 
			int maxCount); List<TaskPojo> assignNewTask(TaskType type, User user, 
			int maxCount, boolean sendAddTask); boolean checkTaskAvailable(User user, TaskPojo task); Collection<TaskPojo> getUserLoginTasks(User user); ArrayList<String> getAllUnlockedAchievements(User user); boolean refreshDailyTask(User user); boolean storeTaskSpecificData(User user, String taskId, Field field, Object data); String queryTaskSpecificData(User user, String taskId, Field field); boolean deleteTaskData(User user, String taskId); void processUserTasks(User user, TaskHook taskHook, Object ... parameters ); static final String getTaskDataKey(User user, Field field); Collection<TaskPojo> acquireTodoTasks(User user); Collection<TaskPojo> acquireFinishedTasks(User user); Collection<TaskPojo> acquireAwardedTasks(User user, TaskType taskType); boolean finishTask(User user, String taskId); boolean isTaskRewardTaken(User user, String taskId); boolean isTaskRewardFinished(User user, String taskId); boolean takeTaskReward(User user, String taskId, int choose); void deleteUserTasks(User user); Collection<TaskPojo> acquireTasks(User user, String setName); Collection<TaskPojo> acquireUserLevelUpTasks(User user,
			Set<String> todoTaskIdSet, Set<String> finishTaskIdSet, 
			Set<String> awardTaskIdSet); TreeSet<TaskPojo> getTasksForType(TaskType type); static final String getFinishedSetName(User user); static final String getTodoSetName(User user); static final String getAwardedSetName(User user); BseTask toBseTask(User user); XinqiBseTaskList.TaskProtoInfo toTaskProtoInfo(User user, TaskPojo task); BseAchievements toBseAchievement(); void sendBseUserAchievements(User user); BseZip toBseZip();  }### Answer:
@Test public void testGetTasks() { Collection<TaskPojo> maps = TaskManager.getInstance().getTasks(); assertTrue(maps.size()>=184); System.out.println("taskid"+"\t"+"taskName"+"\t"+ "userLevel"+"\t"+"sequence"+"\t"+"step"+"\t"+ "level"+"\t"+"type"+"\t"+"script" +"\t"+ "target"); for ( TaskPojo taskPojo : maps ) { System.out.println(taskPojo.getId()+"\t"+taskPojo.getName()+"\t"+ taskPojo.getUserLevel()+"\t"+taskPojo.getSeq()+"\t"+taskPojo.getStep()+"\t"+ taskPojo.getCondition1()+"\t"+taskPojo.getType()+"\t"+taskPojo.getScript() +"\t"+ taskPojo.getTaskTarget()); String script = taskPojo.getScript(); boolean found = false; if ( script == Constant.EMPTY ) { continue; } for ( ScriptHook hook : ScriptHook.values() ) { if ( hook.getHook().equals(script) ) { found = true; break; } } assertTrue("Script: " + script, found); List<Award> awards = taskPojo.getAwards(); for ( Award award : awards ) { System.out.println("award: " + award.id + "\t" + award.typeId ); } } }