### Question:
ApiGateway { @RequestMapping(path = "/mobile", method = RequestMethod.GET) public MobileProduct getProductMobile() { var mobileProduct = new MobileProduct(); mobileProduct.setPrice(priceClient.getPrice()); return mobileProduct; }  @RequestMapping(path = "/desktop", method = RequestMethod.GET) DesktopProduct getProductDesktop(); @RequestMapping(path = "/mobile", method = RequestMethod.GET) MobileProduct getProductMobile();  }### Answer:
@Test public void testGetProductMobile() { var price = "20"; when(priceClient.getPrice()).thenReturn(price); var mobileProduct = apiGateway.getProductMobile(); assertEquals(price, mobileProduct.getPrice()); }