DeletePopUpPresenter { public void setCommentIsHidden(final boolean hidden) { toggleCommentPresenter.setHidden(hidden); } @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 testHiddenComment() throws Exception { presenter.setCommentIsHidden(true); verify(toggleCommentPresenter).setHidden(true); }
@Test public void testVisibleComment() throws Exception { presenter.setCommentIsHidden(false); verify(toggleCommentPresenter).setHidden(false); }