final Database db = new TestDatabase();
final List<Track> recentlyPlayedTracks = new ArrayList<Track>();
final List<Artist> topArtists = new ArrayList<Artist>();
final List<Album> recentlyPlayedAlbums = new ArrayList<Album>();
final TestResponse res = new TestResponse( db );
final Homer h = new Homer();
final Artist artist = TestUtils.getArtist();
final Album album = TestUtils.getAlbum(artist);
final Genre genre = TestUtils.getGenre();
final Track track = TestUtils.getTrack(artist, album, genre);
recentlyPlayedTracks.add( track );
recentlyPlayedAlbums.add( album );
topArtists.add( artist );
h.setResponse( res );
h.showMain( recentlyPlayedTracks, topArtists, recentlyPlayedAlbums );
final String data = res.getOutput();
assertTrue( data.contains(track.getName()) );
assertTrue( data.contains(artist.getName()) );
}