@Test
  void hideDrawer() {
    robot.interact(() -> {
      // given
      assertTrue(workbench.getBlockingOverlaysShown().isEmpty());
      assertTrue(workbench.getNonBlockingOverlaysShown().isEmpty());
      assertNull(workbench.getDrawerShown());
      workbench.showDrawer(drawer, Side.LEFT);

      // when:
      workbench.hideDrawer();

      // then: drawer is hidden
      assertTrue(workbench.getBlockingOverlaysShown().isEmpty());
      assertTrue(workbench.getNonBlockingOverlaysShown().isEmpty());
      assertNull(workbench.getDrawerShown());
    });
  }
Internal testing method which returns the currently shown overlay.
workbenchfx-core/src/test/java/com/dlsc/workbenchfx/WorkbenchTest.java