WorkbenchMenuBarPresenter extends WorkbenchBaseMenuPresenter implements WorkbenchMenuBar { @Override public void collapse() { useExpandedMode = false; view.collapse(); } WorkbenchMenuBarPresenter(final AuthorizationManager authzManager,
                              final PerspectiveManager perspectiveManager,
                              final PlaceManager placeManager,
                              final ActivityManager activityManager,
                              final User identity,
                              final View view,
                              final ExperimentalActivitiesAuthorizationManager experimentalActivitiesAuthorizationManager); IsWidget getView(); void onPerspectiveChange(final PerspectiveChange perspectiveChange); @Override void clear(); @Override void expand(); @Override boolean isUseExpandedMode(); @Override boolean isExpanded(); @Override void collapse(); @Override void addCollapseHandler(final Command command); @Override void addExpandHandler(final Command command);  }
@Test public void testCollapse() { presenter.collapse(); assertFalse(presenter.isUseExpandedMode()); verify(view).collapse(); }