AppsToolbarPresenterImpl implements AppsToolbarView.Presenter,
                                                 CreateNewAppSelected.CreateNewAppSelectedHandler,
                                                 CreateNewWorkflowSelected.CreateNewWorkflowSelectedHandler,
                                                 EditAppSelected.EditAppSelectedHandler,
                                                 RequestToolSelected.RequestToolSelectedHandler,
                                     EditWorkflowSelected.EditWorkflowSelectedHandler,
                                     ShareAppsSelected.ShareAppsSelectedHandler { @Override public void onRequestToolSelected(RequestToolSelected event) { newToolRequestDialogProvider.get().show(); } @Inject  AppsToolbarPresenterImpl(final AppUserServiceFacade appService,
                             final AppsToolbarViewFactory viewFactory); @Override HandlerRegistration addAppSearchResultLoadEventHandler(AppSearchResultLoadEvent.AppSearchResultLoadEventHandler handler); @Override HandlerRegistration addBeforeLoadHandler(BeforeLoadEvent.BeforeLoadHandler<FilterPagingLoadConfig> handler); @Override AppsToolbarView getView(); @Override void onCreateNewAppSelected(CreateNewAppSelected event); @Override void onCreateNewWorkflowSelected(CreateNewWorkflowSelected event); @Override void onEditAppSelected(EditAppSelected event); @Override void onEditWorkflowSelected(final EditWorkflowSelected event); @Override void onRequestToolSelected(RequestToolSelected event); @Override void onShareAppSelected(ShareAppsSelected event);  }
@Test public void verifyToolRequestDlgShown_onRequestToolSelected() { RequestToolSelected eventMock = mock(RequestToolSelected.class); NewToolRequestDialog dlgMock = mock(NewToolRequestDialog.class); when(requestToolDlgProviderMock.get()).thenReturn(dlgMock); uut.onRequestToolSelected(eventMock); verify(requestToolDlgProviderMock).get(); verify(dlgMock).show(); verifyNoMoreInteractions(dlgMock, requestToolDlgProviderMock, eventMock); verifyZeroInteractions(eventBusMock, appServiceMock); }