### Question:
AddProjectPopUpPresenter { public void cancel() { view.hide(); } @Inject  AddProjectPopUpPresenter(final Caller<LibraryService> libraryService,
                                    final BusyIndicatorView busyIndicatorView,
                                    final Event<NotificationEvent> notificationEvent,
                                    final LibraryPlaces libraryPlaces,
                                    final WorkspaceProjectContext projectContext,
                                    final View view,
                                    final SessionInfo sessionInfo,
                                    final Event<NewProjectEvent> newProjectEvent,
                                    final LibraryPreferences libraryPreferences,
                                    final ConflictingRepositoriesPopup conflictingRepositoriesPopup,
                                    final Caller<ValidationService> validationService,
                                    final ErrorPopup errorPopup,
                                    final TranslationService translationService,
                                    final Caller<WorkspaceProjectService> projectService,
                                    final Logger logger,
                                    final ArchetypePreferences archetypePreferences,
                                    final SpaceScopedResolutionStrategySupplier spaceScopedResolutionStrategySupplier); @PostConstruct void setup(); void setSuccessCallback(ParameterizedCommand<WorkspaceProject> successCallback); void show(); void add(); void onProjectIndexingFinishedEvent(@Observes IndexingFinishedEvent event); ParameterizedCommand<WorkspaceProject> getSuccessCallback(); ParameterizedCommand<WorkspaceProject> getProjectCreationSuccessCallback(); void cancel(); void setDefaultArtifactId(); void restoreAdvancedOptions();  }### Answer:
@Test public void cancelTest() { presenter.cancel(); verify(view).hide(); }