RemoteDebugPresenter implements RemoteDebugView.ActionDelegate { public void showDialog() { view.show(); } @Inject  RemoteDebugPresenter(RemoteDebugView view, DebuggerPresenter debuggerPresenter); void showDialog(); @Override void onConfirmClicked(@NotNull String host, @Min(value=0) int port);  }
@Test public void dialogShouldBeShown() throws Exception { presenter.showDialog(); verify(view).show(); }