ApiMoviePosterConverter implements Converter<ApiMoviePoster, MoviePoster> { @Override public MoviePoster convert(ApiMoviePoster input) { String imageUrl = IMAGE_BASE_URL + input.getPosterPath().substring(1, input.getPosterPath().length()); return new MoviePoster(input.getMovieId(), imageUrl); }  @Override MoviePoster convert(ApiMoviePoster input);  }
@Test public void shouldConvertMoviePoster() throws Exception { String imageUrl = "imageUrl.jpg"; long posterId = 1L; ApiMoviePoster apiMoviePoster = createApiMoviePoster(imageUrl, posterId); MoviePoster moviePoster = apiMoviePosterConverter.convert(apiMoviePoster); assertEquals("http: assertEquals(posterId, moviePoster.getMovieId()); }