### Question:
ProductServiceImpl implements ProductService { public int getPrice(String name) { log.debug("getPrice : name : {}", name); StopWatch sw = new StopWatch(); sw.start(); int price = productDao.getPrice(name); sw.stop(); System.out.format("Seconds=%1$s, value=%2$s%n", sw.getTotalTimeSeconds(), price); return price; }  List<Product> findAllProducts(); Product findProduct(String name); int getPrice(String name); void addProduct(Product product); void changeProduct(String productName, int overridePrice); List<Product> resetPriceForAllProducts(); @Override List<Integer> getIncrementValue(List<Integer> nums, int incrementValue); List<Product> updatePriceForGivenProductName(List<String> nameList, int overridePrice); @Override List<Product> getAllProductsFromMemory(); @Override Product getProductFromMemory(String name); @Override List<Product> getProductGivenProductNameFromMemory(List<String> nameList);  }### Answer:
@Test public void getPrice() { productService.addProduct(new Product("microsoft", 100)); assertEquals(100, productService.getPrice("microsoft")); }