final TestResponse res = new TestResponse();
final Playlistser b = new Playlistser();
final List<Playlist> sitePlaylists = new ArrayList<Playlist>();
final List<Playlist> userPlaylists = new ArrayList<Playlist>();
final User user = new User( 12323, "my user" );
final Playlist sitePlaylist = new Playlist( 1, "site Play list" );
final Playlist userPlaylist = new Playlist( 1, "USER Play list", 1, user );
sitePlaylists.add( sitePlaylist );
userPlaylists.add( userPlaylist );
b.setResponse( res );
b.showPlaylists( sitePlaylists, userPlaylists );
final String data = res.getOutput();
assertTrue( data.contains(sitePlaylist.getName()) );
assertTrue( data.contains(userPlaylist.getName()) );
assertTrue( data.contains(user.getName()) );
}