### Question:
UserController { @RequestMapping(value = "/create", method = RequestMethod.GET) public String createUserForm(ModelMap map) { map.addAttribute("user", new User()); map.addAttribute("action", "create"); return "userForm"; }  @RequestMapping(method = RequestMethod.GET) String getUserList(ModelMap map); @RequestMapping(value = "/create", method = RequestMethod.GET) String createUserForm(ModelMap map); @RequestMapping(value = "/create", method = RequestMethod.POST) String postUser(ModelMap map,
                           @ModelAttribute @Valid User user,
                           BindingResult bindingResult); @RequestMapping(value = "/update/{id}", method = RequestMethod.GET) String getUser(@PathVariable Long id, ModelMap map); @RequestMapping(value = "/update", method = RequestMethod.POST) String putUser(ModelMap map,
                          @ModelAttribute @Valid User user,
                          BindingResult bindingResult); @RequestMapping(value = "/delete/{id}", method = RequestMethod.DELETE) String deleteUser(@PathVariable Long id);  }### Answer:
@Test public void createUserForm() throws Exception { mockMvc.perform(get("/users/create")) .andDo(print()) .andExpect(view().name("userForm")) .andExpect(request().attribute("action", "create")) .andDo(print()) .andReturn(); }