### Question:
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject  CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter( final FooterPresenter footerPresenter );  }### Answer:
@Test public void testAddFooter() { FooterPresenter footerPresenter = mock( FooterPresenter.class ); presenter.addFooter( footerPresenter ); verify( footerPresenter ).getView(); verify( view ).add( footerPresenter.getView() ); }