### Question:
JobInfoController { @RequestMapping("/dag") public String dag(HttpServletRequest request, Model model, @RequestParam(required = false, defaultValue = "-1") int jobId, String filterTime) { Date filterDate = DateUtil.parseDate(filterTime); ReturnT<String> result = xxlJobService.dag(jobId,DateUtil.parseDateTodayStart(filterDate),DateUtil.parseDateTodayEnd(filterDate)); model.addAttribute("jobId", jobId); model.addAttribute("response", JacksonUtil.writeValueAsString(result.getContent())); return "jobinfo/jobinfo.dag"; }  @RequestMapping String index(HttpServletRequest request, Model model, @RequestParam(required = false, defaultValue = "-1") int jobGroup); @RequestMapping("/dag") String dag(HttpServletRequest request, Model model, @RequestParam(required = false, defaultValue = "-1") int jobId, String filterTime); static List<XxlJobGroup> filterJobGroupByRole(HttpServletRequest request, List<XxlJobGroup> jobGroupList_all); static void validPermission(HttpServletRequest request, int jobGroup); @RequestMapping("/pageList") @ResponseBody Map<String, Object> pageList(@RequestParam(required = false, defaultValue = "0") int start,
			@RequestParam(required = false, defaultValue = "10") int length,
			String jobName,int jobGroup, int triggerStatus, String jobDesc, String executorHandler, String author); @RequestMapping("/add") @ResponseBody ReturnT<String> add(XxlJobInfo jobInfo); @RequestMapping("/update") @ResponseBody ReturnT<String> update(XxlJobInfo jobInfo); @RequestMapping("/remove") @ResponseBody ReturnT<String> remove(int id); @RequestMapping("/stop") @ResponseBody ReturnT<String> pause(int id); @RequestMapping("/start") @ResponseBody ReturnT<String> start(int id); @RequestMapping("/trigger") @ResponseBody //@PermissionLimit(limit = false) ReturnT<String> triggerJob(int id, String executorParam,int taskDependent);  }### Answer:
@Test public void testDag() throws Exception { MultiValueMap<String, String> parameters = new LinkedMultiValueMap<String, String>(); parameters.add("jobId", "58"); parameters.add("filterTime", "2019-07-29 00:00:00 - 2019-07-29 23:59:59"); MvcResult ret = mockMvc.perform( post("/dag") .contentType(MediaType.APPLICATION_FORM_URLENCODED) .params(parameters) .cookie(cookie) ).andReturn(); System.out.println(ret.getResponse().getContentAsString()); }