### Question:
MultiPageGui implements GUI { @Override public void clear() { this.inventoryPages.clearAll(); this.slotActions.clear(); Set<UUID> activeSessions = this.playerPages.getActiveSessions(); this.playerPages.clear(); activeSessions.forEach(uuid -> { playerPages.setPlayerPage(uuid, 1); server.getPlayer(uuid).closeInventory(); displayTo(server.getPlayer(uuid)); }); }  @Override void displayTo(Player player); @Override void clear(); @Override void addButton(InventoryItem inventoryItem, Executable executable); @Override void addItem(InventoryItem item); @Override void removeItem(int slot, int page);  }### Answer:
@Test public void clear() { MultiPageGui multiPageGui = new MultiPageGui(mock(PlayerPages.class), inventoryPages, mock(SlotActions.class), mock(Server.class), playerPageRearranger); multiPageGui.clear(); verify(inventoryPages).clearAll(); }