ServiceController { @RequestMapping(value = "/service/{name}", method = RequestMethod.GET) public String showPage(@PathVariable("name") String name, Model model) { return SERVICE_VIEW; }  @RequestMapping(value = "/service/{name}", method = RequestMethod.GET) String showPage(@PathVariable("name") String name, Model model);  }
@Test public void showPage() { BindingAwareModelMap model = new BindingAwareModelMap(); String pageView = controller.showPage(SERVICE_NAME, model); assertEquals(ServiceController.SERVICE_VIEW, pageView); }