### Question:
ApiGateway { @RequestMapping(path = "/desktop", method = RequestMethod.GET) public DesktopProduct getProductDesktop() { var desktopProduct = new DesktopProduct(); desktopProduct.setImagePath(imageClient.getImagePath()); desktopProduct.setPrice(priceClient.getPrice()); return desktopProduct; }  @RequestMapping(path = "/desktop", method = RequestMethod.GET) DesktopProduct getProductDesktop(); @RequestMapping(path = "/mobile", method = RequestMethod.GET) MobileProduct getProductMobile();  }### Answer:
@Test public void testGetProductDesktop() { var imagePath = "/product-image.png"; var price = "20"; when(imageClient.getImagePath()).thenReturn(imagePath); when(priceClient.getPrice()).thenReturn(price); var desktopProduct = apiGateway.getProductDesktop(); assertEquals(price, desktopProduct.getPrice()); assertEquals(imagePath, desktopProduct.getImagePath()); }