PriceController { @RequestMapping(value = "/price", method = RequestMethod.GET) public String getPrice() { return "20"; }  @RequestMapping(value = "/price", method = RequestMethod.GET) String getPrice();  }
@Test public void testgetPrice() { PriceController priceController = new PriceController(); String price = priceController.getPrice(); Assert.assertEquals("20", price); }