### Question:
WorkFlowLineageController extends BaseController { @GetMapping(value="/list-name") @ResponseStatus(HttpStatus.OK) public Result<List<WorkFlowLineage>> queryWorkFlowLineageByName(@ApiIgnore @RequestParam(value = "searchVal", required = false) String searchVal, @ApiParam(name = "projectId", value = "PROJECT_ID", required = true) @PathVariable int projectId) { try { searchVal = ParameterUtils.handleEscapes(searchVal); Map<String, Object> result = workFlowLineageService.queryWorkFlowLineageByName(searchVal,projectId); return returnDataList(result); } catch (Exception e){ logger.error(QUERY_WORKFLOW_LINEAGE_ERROR.getMsg(),e); return error(QUERY_WORKFLOW_LINEAGE_ERROR.getCode(), QUERY_WORKFLOW_LINEAGE_ERROR.getMsg()); } }  @GetMapping(value="/list-name") @ResponseStatus(HttpStatus.OK) Result<List<WorkFlowLineage>> queryWorkFlowLineageByName(@ApiIgnore @RequestParam(value = "searchVal", required = false) String searchVal, @ApiParam(name = "projectId", value = "PROJECT_ID", required = true) @PathVariable int projectId); @GetMapping(value="/list-ids") @ResponseStatus(HttpStatus.OK) Result<Map<String, Object>> queryWorkFlowLineageByIds(@ApiIgnore @RequestParam(value = "ids", required = false) String ids,@ApiParam(name = "projectId", value = "PROJECT_ID", required = true) @PathVariable int projectId);  }### Answer:
@Test public void testQueryWorkFlowLineageByName() throws Exception { MultiValueMap<String, String> paramsMap = new LinkedMultiValueMap<>(); paramsMap.add("searchVal","test"); MvcResult mvcResult = mockMvc.perform(get("/lineages/1/list-name") .header("sessionId", sessionId) .params(paramsMap)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8)) .andReturn(); Result result = JSONUtils.parseObject(mvcResult.getResponse().getContentAsString(), Result.class); Assert.assertEquals(Status.SUCCESS.getCode(),result.getCode().intValue()); logger.info(mvcResult.getResponse().getContentAsString()); }