### Question:
CloseUnsavedProjectAssetsPopUpPresenter { public void cancel() { view.hide(); cancelCallback.execute(); } @Inject  CloseUnsavedProjectAssetsPopUpPresenter(final CloseUnsavedProjectAssetsPopUpPresenter.View view,
                                                   final ManagedInstance<CloseUnsavedProjectAssetsPopUpListItemPresenter> closeUnsavedProjectAssetsPopUpListItemPresenters,
                                                   final TranslationService translationService); @PostConstruct void setup(); void show(final WorkspaceProject project,
                     final List<PlaceRequest> uncloseablePlaces,
                     final Command proceedCallback,
                     final Command cancelCallback); void proceed(); void cancel();  }### Answer:
@Test public void cancelTest() { presenter.cancelCallback = mock(Command.class); presenter.cancel(); verify(view).hide(); verify(presenter.cancelCallback).execute(); }