ResetPasswordController { @GetMapping(produces = TEXT_HTML_VALUE) public String doGet( @RequestParam(value = "u", required = false) @Nullable String userId, @RequestParam(value = "vc", required = false) @Nullable String vcode) { if (resetPasswordService.checkVcode(userId, vcode).isPresent()) { return "users/resetPassword"; } else { return "users/resetPasswordInvalid"; } }  @GetMapping(produces = TEXT_HTML_VALUE) String doGet(
            @RequestParam(value = "u", required = false) @Nullable String userId,
            @RequestParam(value = "vc", required = false) @Nullable String vcode); @PostMapping(produces = APPLICATION_JSON_VALUE) String doPost(HttpServletRequest request,
            @RequestParam(value = "verify", required = false) @Nullable String verify,
            @RequestParam(value = "username", required = false) @Nullable String username,
            @Nullable Locale locale); @PostMapping(params = "action=changePassword", produces = APPLICATION_JSON_VALUE) String changePassword(HttpServletRequest request,
            @RequestParam(value = "u", required = false) @Nullable String userId,
            @RequestParam(value = "vc", required = false) @Nullable String vcode);  }
@Test public void testDoGet() throws Exception { log.info("doGet"); MvcResult result = mvc.perform(get("/resetPassword")) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }