RemoteDebugAction extends ProjectAction { @Override public void actionPerformed(@NotNull ActionEvent actionEvent) { eventLogger.log(this); presenter.showDialog(); } @Inject  RemoteDebugAction(AppContext appContext,
                             RemoteDebugPresenter presenter,
                             JavaRuntimeLocalizationConstant locale,
                             ProjectTypeRegistry typeRegistry,
                             AnalyticsEventLogger eventLogger); @Override void updateProjectAction(@NotNull ActionEvent actionEvent); @Override void actionPerformed(@NotNull ActionEvent actionEvent);  }
@Test public void actionShouldBePerformed() { action.actionPerformed(actionEvent); verify(eventLogger).log(action); verify(presenter).showDialog(); }