### Question:
WishlistMovieToSerieDataDtoBuilder { public WishlistDataDto build(WishlistMovie wishlistMovie) { TmdbKino movie = wishlistMovie.getMovie(); return new WishlistDataDto( wishlistMovie.getWishlist_movie_id(), movie != null && movie.getMovie_id() != null ? movie.getMovie_id().intValue() : null, wishlistMovie.getTitle(), movie != null ? movie.getPoster_path() : null, movie != null ? movie.getOverview() : null, movie != null ? movie.getYear() : 0, movie != null ? movie.getRelease_date() : null, WishlistItemType.MOVIE ); }  WishlistDataDto build(WishlistMovie wishlistMovie);  }### Answer:
@SuppressWarnings("ResultOfMethodCallIgnored") @Test public void build() { doReturn(456L).when(wishlistMovie).getWishlist_movie_id(); doReturn("Elle").when(wishlistMovie).getTitle(); doReturn(tmdbMovie).when(wishlistMovie).getMovie(); doReturn(456456456L).when(tmdbMovie).getMovie_id(); doReturn(2015).when(tmdbMovie).getYear(); doReturn("An overview").when(tmdbMovie).getOverview(); doReturn("/poster/path").when(tmdbMovie).getPoster_path(); doReturn("a releaseDate").when(tmdbMovie).getRelease_date(); assertEquals( new WishlistDataDto( 456L, 456456456, "Elle", "/poster/path", "An overview", 2015, "a releaseDate", WishlistItemType.MOVIE ), new WishlistMovieToSerieDataDtoBuilder().build(wishlistMovie) ); }