### Question:
DialogControl extends Control { public final void hide() { getWorkbench().hideDialog(getDialog()); } DialogControl(); final void hide(); final Optional<Button> getButton(ButtonType buttonType); final ObjectProperty<EventHandler<Event>> onShownProperty(); final void setOnShown(EventHandler<Event> value); final EventHandler<Event> getOnShown(); final ObjectProperty<EventHandler<Event>> onHiddenProperty(); final void setOnHidden(EventHandler<Event> value); final EventHandler<Event> getOnHidden(); final WorkbenchDialog getDialog(); final ObjectProperty<WorkbenchDialog> dialogProperty(); final void setDialog(WorkbenchDialog dialog); final ObservableList<Button> getButtons(); final boolean isButtonTextUppercase(); final BooleanProperty buttonTextUppercaseProperty(); final void setButtonTextUppercase(boolean buttonTextUppercase); final Workbench getWorkbench(); final void setWorkbench(Workbench workbench); final ObjectProperty<Workbench> workbenchProperty(); final ReadOnlyBooleanProperty showingProperty(); final boolean isShowing(); ButtonType getCancelButtonType();  }### Answer:
@Test void hide() { dialogControl.hide(); verify(mockBench).hideDialog(mockDialog); }