private void simulateDialogButtonClick(ButtonType press) {
    DialogControl showingDialogControl = getShowingDialogControl();
    simulateDialogButtonClick(showingDialogControl, press);
  }
Internal testing method that will simulate a click on the {@link Button} of
{@link ButtonType} of the currently shown dialog, assuming only one overlay is shown, which
is a dialog.

@param press the {@link ButtonType} of the {@link Button} that should be pressed
workbenchfx-core/src/test/java/com/dlsc/workbenchfx/WorkbenchTest.java