### Question:
UiPagination { public int getTotalAmountOfPages(int nItems) { if (itemsPerPage <= 0) { return 0; } if ((nItems % 2) > 0) { return (nItems / itemsPerPage) + 1; } else { return (nItems / itemsPerPage); } }  int getActivePage(); void setActivePage(int activePage); int getItemsPerPage(); void setItemsPerPage(int itemsPerPage); int getTotalAmountOfPages(int nItems);  }### Answer:
@Test public void getTotalAmountOfPagesTest(){ assertTrue(uiPagination.getTotalAmountOfPages(100)==2); assertTrue(uiPagination.getTotalAmountOfPages(121)==3); }