async function testUpdate(manifest, updatedMedia, updatedReferences=null) {
    // Replace the entries with the updated values.
    fakeNetEngine
        .setResponseText('test:/video', updatedMedia)
        .setResponseText('test:/redirected/video', updatedMedia)
        .setResponseText('test:/video2', updatedMedia)
        .setResponseText('test:/audio', updatedMedia);

    await delayForUpdatePeriod();

    if (updatedReferences) {
      for (const variant of manifest.variants) {
        ManifestParser.verifySegmentIndex(variant.video, updatedReferences);
        if (variant.audio) {
          ManifestParser.verifySegmentIndex(variant.audio, updatedReferences);
        }
      }
    }
  }
@param {shaka.extern.Manifest} manifest
@param {string} updatedMedia
@param {Array=} updatedReferences