private void simulateGlassPaneClick(Node overlayNode) {
    GlassPane glassPane = workbench.getOverlays().get(overlayNode).getGlassPane();
    glassPane.fireEvent(new MouseEvent(MouseEvent.MOUSE_CLICKED, 0, 0, 0, 0,
        MouseButton.PRIMARY, 1,
        false, false, false, false, true, false, false, false, false, false,
        null)
    );
  }
Internal testing method that will simulate a click on a {@link GlassPane} of
an {@code overlayNode}.

@param overlayNode of which the GlassPane should be clicked
workbenchfx-core/src/test/java/com/dlsc/workbenchfx/WorkbenchTest.java