### Question:
ProductServiceImpl implements ProductService { @Override public ProductInfo save(ProductInfo productInfo) { return repository.save(productInfo); }  @Override Optional<ProductInfo> findById(String productId); @Override List<ProductInfo> findUpAll(); @Override Page<ProductInfo> findAll(Pageable pageable); @Override List<ProductInfo> findByCategoryType(Integer categoryType); @Override ProductInfo save(ProductInfo productInfo); @Override @Transactional void increaseStock(List<CartDTO> cartDTOList); @Override @Transactional void decreaseStock(List<CartDTO> cartDTOList); @Override ProductInfo onSale(String productId); @Override ProductInfo offSale(String productId); @Override void delete(String productId);  }### Answer:
@Test public void save() { ProductInfo productInfo = new ProductInfo(); productInfo.setProductId("456789"); productInfo.setProductName("白粥"); productInfo.setProductPrice(new BigDecimal(1.2)); productInfo.setCategoryType(1); productInfo.setProductStatus(ProductStatusEnum.UP.getCode()); productInfo.setProductIcon("http: productInfo.setProductDescription("白粥很绵"); productInfo.setProductStock(50); productService.save(productInfo); }