RemotePresenter implements RemoteView.ActionDelegate { @Override public void onCloseClicked() { view.close(); } @Inject  RemotePresenter(RemoteView view,
                           GitServiceClient service,
                           AppContext appContext,
                           GitLocalizationConstant constant,
                           AddRemoteRepositoryPresenter addRemoteRepositoryPresenter,
                           NotificationManager notificationManager,
                           DtoUnmarshallerFactory dtoUnmarshallerFactory,
                           GitOutputPartPresenter console); void showDialog(); @Override void onCloseClicked(); @Override void onAddClicked(); @Override void onDeleteClicked(); @Override void onRemoteSelected(Remote remote);  }
@Test public void testOnCloseClicked() throws Exception { presenter.onCloseClicked(); verify(view).close(); }