AppsToolbarPresenterImpl implements AppsToolbarView.Presenter,
                                                 CreateNewAppSelected.CreateNewAppSelectedHandler,
                                                 CreateNewWorkflowSelected.CreateNewWorkflowSelectedHandler,
                                                 EditAppSelected.EditAppSelectedHandler,
                                                 RequestToolSelected.RequestToolSelectedHandler,
                                     EditWorkflowSelected.EditWorkflowSelectedHandler,
                                     ShareAppsSelected.ShareAppsSelectedHandler { @Override public void onCreateNewAppSelected(CreateNewAppSelected event) { eventBus.fireEvent(new CreateNewAppEvent()); } @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 verifyEventFired_onCreateNewAppSelected() { CreateNewAppSelected eventMock = mock(CreateNewAppSelected.class); uut.onCreateNewAppSelected(eventMock); verify(eventBusMock).fireEvent(any(CreateNewAppEvent.class)); verifyNoMoreInteractions(eventBusMock); verifyZeroInteractions(appServiceMock); }