### Question:
MovieWishlistService implements WishlistService { @Override public WishlistDataDto getById(Long id) { WishlistMovie wishlistMovie = wishlistMovieRepository.find(id); return wishlistMovie != null ? wishlistMovieToSerieDataDtoBuilder.build(wishlistMovie) : null; } MovieWishlistService(DaoSession daoSession);   MovieWishlistService(WishlistMovieRepository wishlistMovieRepository, TmdbKinoRepository tmdbKinoRepository, WishlistMovieToSerieDataDtoBuilder wishlistMovieToSerieDataDtoBuilder); void createMovieData(WishlistDataDto wishlistDataDto); List<WishlistDataDto> getAll(); void delete(WishlistDataDto wishlistDataDto); @Override WishlistDataDto getByTmdbId(Integer id); @Override WishlistDataDto getById(Long id); @Override WishlistDataDto getWithTmdbId(long tmdbId); @Override WishlistDataDto createOrUpdate(WishlistDataDto dtoObject); @Override void createOrUpdateWithTmdbId(List<WishlistDataDto> dtos);  }### Answer:
@Test public void getById() { final WishlistMovie wishlistMovie = mock(WishlistMovie.class); doReturn(wishlistMovie).when(wishlistMovieRepository).find(34455L); final WishlistDataDto wishlistDataDto = mock(WishlistDataDto.class); doReturn(wishlistDataDto).when(wishlistMovieToSerieDataDtoBuilder).build(wishlistMovie); assertEquals( wishlistDataDto, new MovieWishlistService(wishlistMovieRepository, tmdbKinoRepository, wishlistMovieToSerieDataDtoBuilder).getById(34455L) ); }