### Question:
WorkerGroupService extends BaseService { public Map<String,Object> queryAllGroup() { Map<String, Object> result = new HashMap<>(); List<WorkerGroup> workerGroups = getWorkerGroups(false); Set<String> availableWorkerGroupSet = workerGroups.stream() .map(workerGroup -> workerGroup.getName()) .collect(Collectors.toSet()); result.put(Constants.DATA_LIST, availableWorkerGroupSet); putMsg(result, Status.SUCCESS); return result; }  Map<String,Object> queryAllGroupPaging(User loginUser, Integer pageNo, Integer pageSize, String searchVal); Map<String,Object> queryAllGroup();  }### Answer:
@Test public void testQueryAllGroup() throws Exception { Map<String, Object> result = workerGroupService.queryAllGroup(); Set<String> workerGroups = (Set<String>) result.get(Constants.DATA_LIST); Assert.assertEquals(workerGroups.size(), 1); }