### Question:
ExplorerMenu { public void onTreeExplorerSelected() { if (!activeOptions.isTreeNavigatorVisible()) { activeOptions.activateTreeViewNavigation(); refresh(); updateCommand.execute(); } } ExplorerMenu(); @Inject  ExplorerMenu(final ExplorerMenuView view,
                        final ActiveContextOptions activeOptions,
                        final WorkspaceProjectContext projectContext); Menus asMenu(); void refresh(); void addRefreshCommand(Command refreshCommand); void addUpdateCommand(Command updateCommand); void onBusinessViewSelected(); void onTechViewSelected(); void onTreeExplorerSelected(); void onBreadCrumbExplorerSelected(); void onShowTagFilterSelected(); void onArchiveActiveProject(); void onArchiveActiveRepository(); void onRefresh();  }### Answer:
@Test public void testOnTreeExplorerSelected() throws Exception { menu.onTreeExplorerSelected(); verify(activeOptions).activateTreeViewNavigation(); verify(updateCommand).execute(); }