MovieMapper.class,
KeyWordMapper.class,
FactMapper.class } )
public void shouldMatchClassAndMethod() {
OriginalRelease foreignMovies = new OriginalRelease();
foreignMovies.setTitle( "Sixth Sense, The" );
foreignMovies.setKeyWords( Arrays.asList( "evergreen", "magnificent" ) );
Map<String, List<String>> facts = new HashMap<String, List<String>>();
facts.put( "director", Arrays.asList( "M. Night Shyamalan" ) );
facts.put( "cast", Arrays.asList( "Bruce Willis", "Haley Joel Osment", "Toni Collette" ) );
facts.put( "plot keywords", Arrays.asList( "boy", "child psychologist", "I see dead people" ) );
foreignMovies.setFacts( facts );
GermanRelease germanMovies = MovieMapper.INSTANCE.toGerman( foreignMovies );
assertThat( germanMovies ).isNotNull();
assertThat( germanMovies.getTitle() ).isEqualTo( "Der sechste Sinn" );
assertThat( germanMovies.getKeyWords() ).isNotNull();