Iteration { public long internalCountArtistsFromLondonPrinted(List<Artist> allArtists) { long count = allArtists.stream() .filter(artist -> { System.out.println(artist.getName()); return artist.isFrom("London"); }) .count(); return count; }  int externalCountArtistsFromLondon(List<Artist> allArtists); int externalCountArtistsFromLondonExpanded(List<Artist> allArtists); long internalCountArtistsFromLondon(List<Artist> allArtists); void filterArtistsFromLondon(List<Artist> allArtists); void filterArtistsFromLondonPrinted(List<Artist> allArtists); long internalCountArtistsFromLondonPrinted(List<Artist> allArtists);  }
@Test public void evaluatedPrintOuts() { Iteration iteration = new Iteration(); iteration.internalCountArtistsFromLondonPrinted(SampleData.membersOfTheBeatles); }