### Question:
InventoryPages { public int getTotalPages() { return pages.size(); } InventoryPages(PagesList pages, Server server, PageBuilder pageBuilder); void clearAll(); int getTotalPages(); boolean isEmpty(); Inventory getPage(int page); void addNewPage(); void removePage(int page);  }### Answer:
@Test public void getTotalPages() { addFourPages(); assertEquals(4, inventoryPages.getTotalPages()); }