InformationController { @RequestMapping(value = "/information", method = RequestMethod.GET) public String getProductTitle() { return "The Product Title."; }  @RequestMapping(value = "/information", method = RequestMethod.GET) String getProductTitle();  }
@Test public void shouldGetProductTitle() { InformationController infoController = new InformationController(); String title = infoController.getProductTitle(); Assert.assertEquals("The Product Title.", title); }