### Question:
TmdbServiceWrapper { public Call<TvShowResultsPage> searchTv(String name) { initSearchLanguageIfNeeded(); return tmdb.searchService().tv( name, 1, getTmdbPrefLanguage(), null ); } TmdbServiceWrapper(Context context);   TmdbServiceWrapper(Tmdb tmdb, Context context, PreferencesWrapper preferencesWrapper, LocaleWrapper localeWrapper); Call<MovieResultsPage> search(String name); Call<TvShowResultsPage> searchTv(String name); List<Integer> tvShowSeasons(int tvShowId); List<TvEpisode> tvShowEpisodes(int tvShowId, List<Integer> tvSeasonNumbers); Call<TvShow> searchTvShowById(int tvShowId);  }### Answer:
@Test public void searchTv() throws Exception { doReturn(searchService).when(tmdb).searchService(); doReturn("fr").when(preferencesWrapper).getStringPreference(context, "default_tmdb_language", null); doReturn(call).when(searchService).tv("name", 1, "fr", null); assertEquals( call, new TmdbServiceWrapper(tmdb, context, preferencesWrapper, localeWrapper).searchTv("name") ); }