### Question:
ConfigurationController { @RequestMapping(value="/configuration/sape", method=RequestMethod.GET) public ModelAndView showSapeConfigurationPage() { Component forumComponent = componentService.getComponentOfForum(); SapeConfiguration configuration = configurationService.getSapeConfiguration(forumComponent.getId()); return new ModelAndView(VIEW_SAPE_CONFIGURATION) .addObject(PARAM_SAPE_CONFIGURATION, configuration); } @Autowired  ConfigurationController(ConfigurationService configurationService, ComponentService componentService); @InitBinder void initBinder(WebDataBinder binder); @RequestMapping(value="/configuration/sape", method=RequestMethod.GET) ModelAndView showSapeConfigurationPage(); @RequestMapping(value="/configuration/sape", method=RequestMethod.POST) ModelAndView saveSapeConfiguration(@ModelAttribute SapeConfiguration configuration, BindingResult result);  }### Answer:
@Test public void testShowSapeConfigurationPage() { ModelAndView mav = controller.showSapeConfigurationPage(); assertViewName(mav, VIEW_SAPE_CONFIGURATION); assertModelAttributeAvailable(mav, PARAM_SAPE_CONFIGURATION); SapeConfiguration configuration = assertAndReturnModelAttributeOfType( mav, PARAM_SAPE_CONFIGURATION, SapeConfiguration.class); assertEquals(configuration, sapeConfiguration); }