MoviesListingPresenterImpl implements MoviesListingPresenter { @Override public void setView(MoviesListingView view) { this.view = view; displayMovies(); } MoviesListingPresenterImpl(MoviesListingInteractor interactor); @Override void setView(MoviesListingView view); @Override void destroy(); @Override void firstPage(); @Override void nextPage(); @Override void searchMovie(final String searchText); @Override void searchMovieBackPressed();  }
@Test public void shouldBeAbleToDisplayMovies() { Observable<List<Movie>> responseObservable = Observable.just(movies); when(interactor.fetchMovies(anyInt())).thenReturn(responseObservable); presenter.setView(view); verify(view).showMovies(movies); }