### Question:
ListPager { public int getTotalPages() { return totalPages; } ListPager(final HttpServletRequest request, final HttpServletResponse response, final List<T> items, final String... additionalFormFields);  ListPager(final HttpServletRequest request, final HttpServletResponse response, final List<T> items, final Predicate<T> filter, final String... additionalFormFields); int getTotalItemCount(); int getFilteredItemCount(); List<T> getItemsOnCurrentPage(); @SuppressWarnings("WeakerAccess") int getCurrentPageNumber(); @SuppressWarnings("unused") int getPageSize(); int getFirstItemNumberOnPage(); int getLastItemNumberOnPage(); int getTotalPages(); boolean isFiltered(); String getPageSizeSelection(); String getPageLinks(); String getHiddenFields(); static String getQueryString(final HttpServletRequest request, final char prefix, final String... additionalFormFields); String getJumpToPageForm(); String getPageFunctions();  }### Answer:
@Test public void willRoundUp() { doReturn("24").when(request).getParameter("listPagerPageSize"); final ListPager<Integer> listPager = new ListPager<>(request, response, LIST_OF_25); assertThat(listPager.getTotalPages(), is(2)); }