Question1 { public static List<String> getNamesAndOrigins(List<Artist> artists) { return Exercises.replaceThisWithSolution(); }  static int addUp(Stream<Integer> numbers); static List<String> getNamesAndOrigins(List<Artist> artists); static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input);  }
@Test public void extractsNamesAndOriginsOfArtists() { List<String> namesAndOrigins = Question1.getNamesAndOrigins(SampleData.getThreeArtists()); assertEquals(asList("John Coltrane", "US", "John Lennon", "UK", "The Beatles", "UK"), namesAndOrigins); }