ShowProjectGitReadOnlyUrlPresenter implements ShowProjectGitReadOnlyUrlView.ActionDelegate { @Override public void onCloseClicked() { view.close(); } @Inject  ShowProjectGitReadOnlyUrlPresenter(ShowProjectGitReadOnlyUrlView view,
                                              GitServiceClient service,
                                              AppContext appContext,
                                              GitLocalizationConstant constant,
                                              GitOutputPartPresenter console,
                                              NotificationManager notificationManager,
                                              DtoUnmarshallerFactory dtoUnmarshallerFactory); void showDialog(); @Override void onCloseClicked();  }
@Test public void testOnCloseClicked() throws Exception { presenter.onCloseClicked(); verify(view).close(); }