DocksBars { DocksBar getDockBar(UberfireDock dock) { for (DocksBar candidate : docks) { if (candidate.getPosition().equals(dock.getDockPosition())) { return candidate; } } return null; } @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 getDockBar() { docksBars.setup(); DocksBar targetDockBar = docksBars.getDockBar(dock0); assertEquals(dock0.getDockPosition(), targetDockBar.getPosition()); }