private boolean isStageOpen() {
    return robot.listTargetWindows().size() == 1;
  }
Internal utility method for testing.
Determines whether the current stage is open or was closed.
workbenchfx-core/src/test/java/com/dlsc/workbenchfx/WorkbenchTest.java