ResetFilesPresenter implements ResetFilesView.ActionDelegate { @Override public void onCancelClicked() { view.close(); } @Inject  ResetFilesPresenter(ResetFilesView view,
                               GitServiceClient service,
                               AppContext appContext,
                               GitOutputPartPresenter console,
                               GitLocalizationConstant constant,
                               NotificationManager notificationManager,
                               DtoFactory dtoFactory,
                               DtoUnmarshallerFactory dtoUnmarshallerFactory,
                               DialogFactory dialogFactory); void showDialog(); @Override void onResetClicked(); @Override void onCancelClicked();  }
@Test public void testOnCancelClicked() throws Exception { presenter.onCancelClicked(); verify(view).close(); }