PhoneController { @RequestMapping(value="/phone/{model}", method = RequestMethod.GET) public String showPage(@PathVariable("model") String phoneModel, Model model) { return PHONE_VIEW; }  @RequestMapping(value="/phone/{model}", method = RequestMethod.GET) String showPage(@PathVariable("model") String phoneModel, Model model);  }
@Test public void showPage() { BindingAwareModelMap model = new BindingAwareModelMap(); String pageView = controller.showPage(PHONE_MODEL, model); assertEquals(PhoneController.PHONE_VIEW, pageView); }