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