ImageController { @RequestMapping(value = "/image-path", method = RequestMethod.GET) public String getImagePath() { return "/product-image.png"; }  @RequestMapping(value = "/image-path", method = RequestMethod.GET) String getImagePath();  }
@Test public void testGetImagePath() { ImageController imageController = new ImageController(); String imagePath = imageController.getImagePath(); Assert.assertEquals("/product-image.png", imagePath); }