### Question:
BbsArticleApiService { public Page<BbsArticleEntity> page(Pageable pageable) { return bbsArticleRepository.findAll(pageable); }  Page<BbsArticleEntity> page(Pageable pageable); Optional<BbsArticleEntity> get(Long articleId); void preAddArticle(BbsArticleEntity dbParam); @Transactional void addArticle(BbsArticleEntity dbParam); void preModifyArticle(BbsArticleEntity dbParam); @Transactional void modifyArticle(BbsArticleEntity dbParam);  }### Answer:
@Test public void emptyListSuccessTest() { final int recordCount = 10; Pageable pageable; GIVEN: { pageable = PageRequest.of(0, recordCount); given(bbsArticleRepository.findAll(pageable)).willReturn(new PageImpl<>(Collections.emptyList())); } Page<BbsArticleEntity> page; WHEN: { page = bbsArticleApiService.page(pageable); } THEN: { Assert.assertEquals(page.getTotalElements(), 0); } }