final Request req = createNiceMock( Request.class );
replay( server );
replay( req );
final PlaylistTemplate tpl = (PlaylistTemplate) tplClass.newInstance();
tpl.setProperties( p );
tpl.setUser( user );
tpl.setTracks( new Track[] {track} );
tpl.setRequest( req );
tpl.setProtocol( "http" );
return tpl.makeRenderer().asString();
}