### Question:
ProductServiceImpl implements ProductService { @Override public Page<ProductInfo> findAll(Pageable pageable) { return repository.findAll(pageable); }  @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 findAll() { PageRequest request = new PageRequest(0 , 2); Page<ProductInfo> productInfoPage = productService.findAll(request); System.out.println(productInfoPage.getTotalElements()); }