### Question:
ArtifactSelectorPresenter { protected void onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } } @Inject  ArtifactSelectorPresenter(final View view,
                                     final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh(); ArtifactListView getArtifactListView(); void setArtifactSelectHandler(final ArtifactSelectHandler artifactSelectHandler);  }### Answer:
@Test public void testOnArtifactSelected() { presenter.setArtifactSelectHandler(artifactSelectHandler); presenter.onArtifactSelected(VALUE); verify(artifactSelectHandler, times(1)).onArtifactSelected(VALUE); }