### Question:
WorkFlowLineageService extends BaseService { public Map<String, Object> queryWorkFlowLineageByName(String workFlowName, int projectId) { Map<String, Object> result = new HashMap<>(5); List<WorkFlowLineage> workFlowLineageList = workFlowLineageMapper.queryByName(workFlowName, projectId); result.put(Constants.DATA_LIST, workFlowLineageList); putMsg(result, Status.SUCCESS); return result; }  Map<String, Object> queryWorkFlowLineageByName(String workFlowName, int projectId); Map<String, Object> queryWorkFlowLineageByIds(Set<Integer> ids,int projectId);  }### Answer:
@Test public void testQueryWorkFlowLineageByName() { String searchVal = "test"; when(workFlowLineageMapper.queryByName(searchVal, 1)).thenReturn(getWorkFlowLineages()); Map<String, Object> result = workFlowLineageService.queryWorkFlowLineageByName(searchVal,1); List<WorkFlowLineage> workFlowLineageList = (List<WorkFlowLineage>)result.get(Constants.DATA_LIST); Assert.assertTrue(workFlowLineageList.size()>0); }