### Question:
AdminHomeController { @RequestMapping(method = RequestMethod.GET) public String viewDefault(Model model, @RequestParam (required = false) String referringPageId) { model.addAttribute(ModelKeys.REFERRING_PAGE_ID, referringPageId); AdminControllerUtil.addNavigationMenusToModel("home", model, referringPageId); return ViewNames.ADMIN_HOME; }  @RequestMapping(method = RequestMethod.GET) String viewDefault(Model model, @RequestParam (required = false) String referringPageId);  }### Answer:
@Test public void adminHome() throws Exception { Model model = new ExtendedModelMap(); String homeView = controller.viewDefault(model, REFERRER_ID); assertEquals(ViewNames.ADMIN_HOME, homeView); assertTrue(model.containsAttribute(TABS)); assertThat((String) model.asMap().get(ModelKeys.REFERRING_PAGE_ID), is(equalTo(REFERRER_ID))); }