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