DeletePopUpPresenter { public void cancel() { this.opened = false; view.hide(); } @Inject  DeletePopUpPresenter(View view,
                                ToggleCommentPresenter toggleCommentPresenter); @PostConstruct void setup(); void show(final ParameterizedCommand<String> command); void show(final Validator validator,
                     final ParameterizedCommand<String> command); void cancel(); ParameterizedCommand<String> getCommand(); boolean isOpened(); void delete(); void setPrompt(final String prompt); void setCommentIsHidden(final boolean hidden); ToggleCommentPresenter getToggleCommentPresenter();  }
@Test public void cancel() throws Exception { presenter.cancel(); verify(view).hide(); }