DocksBars { public boolean isReady(UberfireDockPosition dockPosition) { return uberfireDocksContainer.isReady() && docksBarIsReady(dockPosition); } @Inject  DocksBars(PlaceManager placeManager,
                     MenuBuilder menuBuilder,
                     Event<UberfireDocksInteractionEvent> dockInteractionEvent,
                     UberfireDocksContainer uberfireDocksContainer,
                     AuthorizationManager authorizationManager,
                     User identity); void setup(); void addDock(UberfireDock dock); void clearAndCollapseDocks(final UberfireDockPosition position); void clearAndHideAllDocks(); void clearAndHide(UberfireDockPosition position); void open(UberfireDock dock); void close(UberfireDock dock); void toggle(UberfireDock dock); void show(DocksBar docksBar); void show(UberfireDockPosition position); boolean isReady(UberfireDockPosition dockPosition); List<DocksBar> getDocksBars();  }
@Test public void isReadyTest() { final DocksBars docksBarsSpy = spy(docksBars); when(uberfireDocksContainer.isReady()).thenReturn(false); assertFalse(docksBarsSpy.isReady(UberfireDockPosition.EAST)); when(uberfireDocksContainer.isReady()).thenReturn(true); assertFalse(docksBarsSpy.isReady(UberfireDockPosition.EAST)); docksBars.setup(); when(uberfireDocksContainer.isReady()).thenReturn(true); assertTrue(docksBarsSpy.isReady(UberfireDockPosition.EAST)); }