### Question:
InfoTitlePresenter implements TitlePresenter { public void setup(final ReleaseId gav) { checkNotNull("gav", gav); view.setup(gav.getGroupId(), gav.getArtifactId()); } @Inject  InfoTitlePresenter(final View view); @Override View getView(); void setup(final ReleaseId gav);  }### Answer:
@Test public void testSetup() { final ReleaseId releaseId = new ReleaseId( "com.company", "artifact-id", "1.0.0" ); presenter.setup( releaseId ); verify( view ).setup( releaseId.getGroupId(), releaseId.getArtifactId() ); }
@Test(expected = IllegalArgumentException.class) public void testNullSetup() { presenter.setup( null ); }