### Question:
InventoryPages { public Inventory getPage(int page) { if (pages.isEmpty()) { return emptyInventory; } return pages.get(page - 1); } 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 getPage() { addFourPages(); assertSame(inventories.get(1), inventoryPages.getPage(2)); assertSame(inventories.get(3), inventoryPages.getPage(4)); }