ViewHideAlertsButtonPresenter { public void hideAlerts() { placeManager.closePlace(MessageConsoleScreen.ALERTS); } @Inject  ViewHideAlertsButtonPresenter(final PlaceManager placeManager,
                                         final View view); @PostConstruct void init(); void addCssClassToButtons(final String cssClass); void viewAlerts(); void hideAlerts(); View getView();  }
@Test public void hideAlertsTest() { presenter.hideAlerts(); verify(placeManager).closePlace(MessageConsoleScreen.ALERTS); }