ModifyUserController { @GetMapping({"modifyuserpage", "modifyuser"}) public String updatePage(Model model, Authentication authentication) { String userId = authentication != null ? authentication.getName() : null; User user = accountService.findOne(userId); model.addAttribute("user", user); return "users/edit"; }  @GetMapping({"modifyuserpage", "modifyuser"}) String updatePage(Model model, Authentication authentication); @PostMapping("modifyuser") @SuppressWarnings("AssignmentToMethodParameter") String update(Model model,
            @RequestParam("oldPassword") String oldPassword,
            @RequestParam("newPassword") String newPassword,
            @RequestParam("rptPassword") String rptPassword,
            @RequestParam("email") String email,
            @RequestParam("nick") String nick,
            @RequestParam("school") String school,
            Authentication authentication);  }
@Test public void testUpdatePage() throws Exception { log.info("updatePage"); String userId = mockDataService.user().getId(); MvcResult result = mvc.perform(get("/modifyuserpage").with(user(userId))) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }