### Question:
Tab extends Control { public final void close() { workbench.closeModule(getModule()); } Tab(Workbench workbench); final void close(); final void open(); final WorkbenchModule getModule(); final void setModule(WorkbenchModule module); final ReadOnlyObjectProperty<WorkbenchModule> moduleProperty(); final String getName(); final ReadOnlyStringProperty nameProperty(); final Node getIcon(); final ReadOnlyObjectProperty<Node> iconProperty(); final boolean isActiveTab(); final ReadOnlyBooleanProperty activeTabProperty();  }### Answer:
@Test void close() { tab.close(); verify(mockBench).closeModule(mockModules[0]); tab.setModule(mockModules[1]); tab.close(); verify(mockBench).closeModule(mockModules[1]); }