text: let nock = require('nock');
  
  module.exports.hash = "6a46fa46bb363d22703180d6b83fd8f6";
  
  module.exports.testInfo = {"uniqueName":{},"newDate":{}}
  
  nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
    .get('/common/discovery/instance')
    .query(true)
    .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [
    'Cache-Control',
    'max-age=86400, private',
    'Content-Type',
    'application/json; charset=utf-8',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'Access-Control-Allow-Origin',
    '*',
    'Access-Control-Allow-Methods',
    'GET, OPTIONS',
    'P3P',
    'CP="DSP CUR OTPi IND OTRi ONL FIN"',
    'x-ms-request-id',
    '3c456b10-427a-4d73-a0bc-5f5477218401',
    'x-ms-ests-server',
    '2.1.11654.16 - SCUS ProdSlices',
    'Set-Cookie',
    'fpc=AgRLK_yyL-BMiLhMpVRBz8rGLH8mDAAAAFyuG9gOAAAA; expires=Fri, 28-May-2021 19:34:57 GMT; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrzxj7ddDa7MKCyEjsZOrhmlCUCafz_ugQqkWQcca-mHF7B1pzfU1lzmVne1leLcGAE7-a4OJ9fV2Fi1TsuYqXNebuya8x9DNWrtpcNStg4CgCAbhqRYU5vv046Bb5TzihuVRVzI3qMBk6bRweEuU_us12-obeLDaGf4oPKALSwjUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly',
    'Set-Cookie',
    'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly',
    'Date',
    'Wed, 28 Apr 2021 19:34:57 GMT',
    'Content-Length',
    '980'
  ]);
  
  nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
    .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration')
    .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [
    'Cache-Control',
    'max-age=86400, private',
    'Content-Type',
    'application/json; charset=utf-8',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'Access-Control-Allow-Origin',
    '*',
    'Access-Control-Allow-Methods',
    'GET, OPTIONS',
    'P3P',
    'CP="DSP CUR OTPi IND OTRi ONL FIN"',
    'x-ms-request-id',
    'bd623507-ae28-489c-88a4-1261cac4d801',
    'x-ms-ests-server',
    '2.1.11654.16 - WUS2 ProdSlices',
    'Set-Cookie',
    'fpc=AgRLK_yyL-BMiLhMpVRBz8rGLH8mDAAAAFyuG9gOAAAA; expires=Fri, 28-May-2021 19:34:57 GMT; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUM6yHVD96ejby0Q2l3flAngLyQTeAyv7hf6GTvJwHy65f9PQXauC3-CCGPZrnHvWvtTdwKF3T36tINxQ8AKe72FNbGUF09GPe4qdwqrG0fh1lCzT88UUJhgrwKRJAUhgseHk1bU5ZvJRAAyyo78xjRqDKDIJXbRlzc5tYcxZH2MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly',
    'Set-Cookie',
    'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly',
    'Date',
    'Wed, 28 Apr 2021 19:34:57 GMT',
    'Content-Length',
    '1651'
  ]);
  
  nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
    .filteringRequestBody(function (body) {
              return body.replace(/client-request-id=[^&]*/g, "client-request-id=client-request-id");
          })
    .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fcognitiveservices.azure.com%2F.default%20openid%20profile%20offline_access&grant_type=client_credentials&client-request-id=client-request-id&client_secret=azure_client_secret")
    .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [
    'Cache-Control',
    'no-store, no-cache',
    'Pragma',
    'no-cache',
    'Content-Length',
    '1331',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'P3P',
    'CP="DSP CUR OTPi IND OTRi ONL FIN"',
    'x-ms-request-id',
    '06eddcf6-9993-42fc-8c86-b63e9f76b100',
    'x-ms-ests-server',
    '2.1.11654.16 - WUS2 ProdSlices',
    'x-ms-clitelem',
    '1,0,0,,',
    'Set-Cookie',
    'fpc=AgRLK_yyL-BMiLhMpVRBz8rGLH8mDAAAAFyuG9gOAAAA; expires=Fri, 28-May-2021 19:34:57 GMT; path=/; secure; HttpOnly; SameSite=None',
    'Set-Cookie',
    'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly',
    'Set-Cookie',
    'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly',
    'Date',
    'Wed, 28 Apr 2021 19:34:57 GMT'
  ]);
  
  nock('https://endpoint:443', {"encodedQueryParams":true})
    .post('/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyze', {"source":"https://storageaccount/testingdata/license.jpg?sastoken"})
    .reply(202, "", [
    'Content-Length',
    '0',
    'Operation-Location',
    'https://endpoint/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyzeResults/c2dab796-d3a7-4409-b9df-e25bb07b6d10',
    'x-envoy-upstream-service-time',
    '121',
    'apim-request-id',
    'c2dab796-d3a7-4409-b9df-e25bb07b6d10',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains; preload',
    'x-content-type-options',
    'nosniff',
    'Date',
    'Wed, 28 Apr 2021 19:34:57 GMT'
  ]);
  
  nock('https://endpoint:443', {"encodedQueryParams":true})
    .get('/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyzeResults/c2dab796-d3a7-4409-b9df-e25bb07b6d10')
    .reply(200, {"status":"notStarted","createdDateTime":"2021-04-28T19:34:57Z","lastUpdatedDateTime":"2021-04-28T19:34:57Z"}, [
    'Content-Length',
    '109',
    'Content-Type',
    'application/json; charset=utf-8',
    'x-envoy-upstream-service-time',
    '11',
    'apim-request-id',
    'ab32ca8b-455b-427f-bcf9-93957a7900f7',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains; preload',
    'x-content-type-options',
    'nosniff',
    'Date',
    'Wed, 28 Apr 2021 19:34:57 GMT'
  ]);
  
  nock('https://endpoint:443', {"encodedQueryParams":true})
    .get('/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyzeResults/c2dab796-d3a7-4409-b9df-e25bb07b6d10')
    .reply(200, {"status":"notStarted","createdDateTime":"2021-04-28T19:34:57Z","lastUpdatedDateTime":"2021-04-28T19:34:57Z"}, [
    'Content-Length',
    '109',
    'Content-Type',
    'application/json; charset=utf-8',
    'x-envoy-upstream-service-time',
    '11',
    'apim-request-id',
    '54cbb328-63d9-406a-93aa-b1689b2e6419',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains; preload',
    'x-content-type-options',
    'nosniff',
    'Date',
    'Wed, 28 Apr 2021 19:34:57 GMT'
  ]);
  
  nock('https://endpoint:443', {"encodedQueryParams":true})
    .get('/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyzeResults/c2dab796-d3a7-4409-b9df-e25bb07b6d10')
    .reply(200, {"status":"running","createdDateTime":"2021-04-28T19:34:57Z","lastUpdatedDateTime":"2021-04-28T19:34:57Z"}, [
    'Content-Length',
    '106',
    'Content-Type',
    'application/json; charset=utf-8',
    'x-envoy-upstream-service-time',
    '15',
    'apim-request-id',
    '9f502dbd-9163-48ac-9477-f73524a85153',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains; preload',
    'x-content-type-options',
    'nosniff',
    'Date',
    'Wed, 28 Apr 2021 19:35:02 GMT'
  ]);
  
  nock('https://endpoint:443', {"encodedQueryParams":true})
    .get('/formrecognizer/v2.1-preview.3/prebuilt/idDocument/analyzeResults/c2dab796-d3a7-4409-b9df-e25bb07b6d10')
    .reply(200, {"status":"succeeded","createdDateTime":"2021-04-28T19:34:57Z","lastUpdatedDateTime":"2021-04-28T19:35:05Z","analyzeResult":{"version":"2.1.0","readResults":[{"page":1,"angle":-0.2823,"width":450,"height":294,"unit":"pixel"}],"documentResults":[{"docType":"prebuilt:idDocument:driverLicense","docTypeConfidence":0.995,"pageRange":[1,1],"fields":{"Address":{"type":"string","valueString":"123 STREET ADDRESS YOUR CITY WA 99999-1234","text":"123 STREET ADDRESS YOUR CITY WA 99999-1234","boundingBox":[158,151,326,151,326,177,158,177],"page":1,"confidence":0.965},"Country":{"type":"country","valueCountry":"USA","confidence":0.99},"DateOfBirth":{"type":"date","valueDate":"1958-01-06","text":"01/06/1958","boundingBox":[187,133,272,132,272,148,187,149],"page":1,"confidence":0.99},"DateOfExpiration":{"type":"date","valueDate":"2020-08-12","text":"08/12/2020","boundingBox":[332,230,414,228,414,244,332,245],"page":1,"confidence":0.99},"DocumentNumber":{"type":"string","valueString":"LICWDLACD5DG","text":"LIC#WDLABCD456DG","boundingBox":[162,70,307,68,307,84,163,85],"page":1,"confidence":0.99},"FirstName":{"type":"string","valueString":"LIAM R.","text":"LIAM R.","boundingBox":[158,102,216,102,216,116,158,116],"page":1,"confidence":0.985},"LastName":{"type":"string","valueString":"TALBOT","text":"TALBOT","boundingBox":[160,86,213,85,213,99,160,100],"page":1,"confidence":0.987},"Region":{"type":"string","valueString":"Washington","confidence":0.99},"Sex":{"type":"gender","valueGender":"M","text":"M","boundingBox":[226,190,232,190,233,201,226,201],"page":1,"confidence":0.99}}}]}}, [
    'Content-Length',
    '1587',
    'Content-Type',
    'application/json; charset=utf-8',
    'x-envoy-upstream-service-time',
    '20',
    'apim-request-id',
    '1a77a26a-817b-43ed-826c-f5622a734c61',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains; preload',
    'x-content-type-options',
    'nosniff',
    'Date',
    'Wed, 28 Apr 2021 19:35:07 GMT'
  ]);
  