### Question:
PaginationResult { public int getTotalPageCount() { int numberOfFullPages = getTotalCount() / paginationOptions.getPageSize(); boolean hasAdditionalNotFullPage = getTotalCount() % paginationOptions.getPageSize() != 0; return numberOfFullPages + (hasAdditionalNotFullPage ? 1 : 0); } PaginationResult(List<T> resources);   PaginationResult(List<T> resources, int totalCount, PaginationOptions<T> paginationOptions); List<T> getResources(); int getTotalCount(); PaginationOptions<T> getPaginationOptions(); int getTotalPageCount(); boolean isPagingActive();  }### Answer:
@Test public void createPaginationResult() { PaginationOptions paginationOptions = new PaginationOptions(0, 10, null); PaginationResult paginationResult = new PaginationResult(new ArrayList(), 23, paginationOptions); assertEquals(paginationResult.getTotalPageCount(), 3); }