### Question:
ProductServiceImpl implements ProductService { public List<Product> resetPriceForAllProducts() { log.debug("resetPriceForAllProducts"); StopWatch sw = new StopWatch(); sw.start(); List<Product> value = productDao.resetPriceForAllProducts(); sw.stop(); System.out.format("Seconds=%1$s, value=%2$s%n", sw.getTotalTimeSeconds(), value); return value; }  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 resetPriceForAllProducts() { productService.addProduct(new Product("microsoft", 100)); productService.addProduct(new Product("sony", 100)); productService.resetPriceForAllProducts(); List<Product> productList = productService.findAllProducts(); for (Product product : productList) { assertEquals(0, product.getPrice()); } }