KogitoEditorDock implements AuthoringEditorDock { @Override public void expandAuthoringDock(UberfireDock dockToOpen) { uberfireDocks.show(UberfireDockPosition.EAST, authoringPerspectiveIdentifier); if (dockToOpen != null) { uberfireDocks.open(dockToOpen); } } @Inject  KogitoEditorDock(final UberfireDocks uberfireDocks,
                            final ManagedInstance<WorkbenchDocksHandler> installedHandlers); @PostConstruct void initialize(); @Override boolean isSetup(); @Override void setup(String authoringPerspectiveIdentifier, PlaceRequest defaultPlaceRequest); @Override void show(); @Override void hide(); @Override void expandAuthoringDock(UberfireDock dockToOpen);  }
@Test public void expandAuthoringDock() { final UberfireDock dockToOpen = mock(UberfireDock.class); kogitoEditorDockSpy.expandAuthoringDock(dockToOpen); verify(uberfireDocks, times(1)).show(eq(UberfireDockPosition.EAST), eq(AUTHORING_PERSPECTIVE)); verify(uberfireDocks, times(1)).open(eq(dockToOpen)); }