AddRemoteRepositoryPresenter implements AddRemoteRepositoryView.ActionDelegate { @Override public void onCancelClicked() { view.close(); } @Inject  AddRemoteRepositoryPresenter(AddRemoteRepositoryView view, GitServiceClient service, AppContext appContext); void showDialog(@NotNull AsyncCallback<Void> callback); @Override void onOkClicked(); @Override void onCancelClicked(); @Override void onValueChanged();  }
@Test public void testOnCancelClicked() throws Exception { presenter.onCancelClicked(); verify(view).close(); }