private WebPage(Page<T> page) {
   number = page.getNumber();
   size = page.getSize();
   totalPages = page.getTotalPages();
   numberOfElements = page.getNumberOfElements();
   totalElements = page.getTotalElements();
   hasPreviousPage = page.hasPreviousPage();
   isFirstPage = page.isFirstPage();
   hasNextPage = page.hasNextPage();
   isLastPage = page.isLastPage();
   content = page.getContent();
   hasContent = page.hasContent();
   sort = new WebSort(page.getSort());
 }
  @Test(dataProvider = "parameterSearchPostsWithEmptySearchPhrase")
  public void testSearchPostsWithEmptySearchPhrase(String phrase) {
    Page<Topic> searchResultPage = topicFetchService.searchByTitleAndContent(phrase, 50);

    Assert.assertTrue(!searchResultPage.hasContent(), "The search result must be empty.");
  }