### Question:
LinkTitlePresenter implements TitlePresenter { public void setup(final String title, final Command command) { this.command = checkNotNull("command", command); view.setText(title); } @Inject  LinkTitlePresenter(final View view); @PostConstruct void init(); @Override View getView(); void setup(final String title,
                      final Command command); void onSelect();  }### Answer:
@Test public void testSetup() { final Command command = mock( Command.class ); presenter.setup( "title", command ); verify( view ).setText( "title" ); presenter.onSelect(); verify( command ).execute(); }