async function testInitialManifest(
      master, initialMedia, initialReferences=null) {
    configureNetEngineForInitialManifest(master, initialMedia, initialMedia);

    const manifest = await parser.start('test:/master', playerInterface);

    // Create the segment index for the variants, to finish the lazy-loading.
    await Promise.all(manifest.variants.map(async (variant) => {
      await variant.video.createSegmentIndex();

      if (initialReferences) {
        ManifestParser.verifySegmentIndex(variant.video, initialReferences);
      }

      if (variant.audio) {
        await variant.audio.createSegmentIndex();
        if (initialReferences) {
          ManifestParser.verifySegmentIndex(variant.audio, initialReferences);
        }
      }
    }));

    return manifest;
  }
@param {string} master
@param {string} initialMedia
@param {Array=} initialReferences
@return {!Promise<shaka.extern.Manifest>}