function getAndExpectError(mainRecord, networkRecords) {
    const error = getInterstitialError(mainRecord, networkRecords);
    if (!error) throw new Error('expected an interstitial error');
    return error;
  }
@param {NetworkRequest} mainRecord
@param {NetworkRequest[]} networkRecords