### Question:
ArtifactSelectorPresenter { protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); } @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 testOnSearch() { when(view.getFilter()).thenReturn(VALUE); presenter.onSearch(); verify(artifactListPresenter, times(1)).search(VALUE, presenter.FORMATS); }