### Question:
UiPagination { public void setItemsPerPage(int itemsPerPage) { this.itemsPerPage = itemsPerPage; if (this.itemsPerPage < 0) { this.itemsPerPage = 0; } }  int getActivePage(); void setActivePage(int activePage); int getItemsPerPage(); void setItemsPerPage(int itemsPerPage); int getTotalAmountOfPages(int nItems);  }### Answer:
@Test public void setItemsPerPageTest(){ uiPagination.setItemsPerPage(-1); assertTrue(uiPagination.getItemsPerPage()==0); uiPagination.setItemsPerPage(10); assertTrue(uiPagination.getItemsPerPage()==10); }