function assertBrowserHeader({ agent, header, plan }) {
  plan.equal(header.substring(0, 7), '<script', 'should generate RUM headers')
  header.split(';').forEach(function (element) {
    if (element.substring(0, DATA_PREFIX.length) === DATA_PREFIX) {
      const dataString = element.substring(DATA_PREFIX.length, element.length)
      const data = JSON.parse(dataString)
      const tx = hashes.deobfuscateNameUsingKey(
        data.transactionName,
        agent.config.license_key.substring(0, 13)
      )
      plan.equal(tx, 'WebTransaction/NormalizedUri/WORKING', 'url normalized before RUM')
    }
  })
}
Helpers to assert the parts of a browser header

@param {object} params to function
@param {Agent} params.agent instance of agent
@param {string} params.header browser header
@param {object} params.plan testplan assertion