SaecController { @RequestMapping(value = "/enconn", method = RequestMethod.POST) public ServiceResult<String> enconn(@RequestBody CassecRequest cassecRequest, @CurrentUser LoginUser user) throws Exception { Project project = projectDao.getProjectByAppId(cassecRequest.getAppId()); return securityService.getSecurityToken(user, project); }  @RequestMapping(value = "/enconn", method = RequestMethod.POST) ServiceResult<String> enconn(@RequestBody CassecRequest cassecRequest, @CurrentUser LoginUser user); @RequestMapping(value = "/getInstanceDetail", method = RequestMethod.POST) ServiceResult<String> getInstanceDetail(@RequestBody DataIntancesRequest dataIntancesRequest, @CurrentUser LoginUser user);  }
@Test public void enconn() throws Exception { mockMvc.perform(MockMvcRequestBuilders.post("/saec/enconn") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }