ResetToCommitPresenter implements ResetToCommitView.ActionDelegate { @Override public void onRevisionSelected(@NotNull Revision revision) { selectedRevision = revision; view.setEnableResetButton(selectedRevision != null); } @Inject  ResetToCommitPresenter(ResetToCommitView view,
                                  GitServiceClient service,
                                  GitLocalizationConstant constant,
                                  GitOutputPartPresenter console,
                                  EditorAgent editorAgent,
                                  AppContext appContext,
                                  NotificationManager notificationManager,
                                  DtoUnmarshallerFactory dtoUnmarshallerFactory,
                                  ProjectExplorerPresenter projectExplorer,
                                  EventBus eventBus,
                                  ProjectServiceClient projectService); void showDialog(); @Override void onResetClicked(); @Override void onCancelClicked(); @Override void onRevisionSelected(@NotNull Revision revision);  }
@Test public void testOnRevisionSelected() throws Exception { presenter.onRevisionSelected(selectedRevision); verify(view).setEnableResetButton(eq(ENABLE_BUTTON)); }