text: let nock = require('nock');
  
  module.exports.hash = "17d0085d3353091a77f46776983cc631";
  
  module.exports.testInfo = {"uniqueName":{"update-digitaltwin-replace":"digitalTwin161015522865606318"},"newDate":{}}
  
  nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
    .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default")
    .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-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',
    '1c0811a5-de1d-4be4-9beb-2cf3bf329500',
    'x-ms-ests-server',
    '2.1.11384.5 - EUS ProdSlices',
    'Set-Cookie',
    'fpc=AlInkhb_OzhDjdOCfHNHDceuaJ_6AQAAANv7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:27 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',
    'Sat, 09 Jan 2021 01:20:27 GMT',
    'Content-Length',
    '1325'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/models/dtmi%3Asamples%3ADTTestBuilding%3B1')
    .query(true)
    .reply(404, {"error":{"code":"ModelNotFound","message":"There is no Model(s) available that matches the provided id(s) dtmi:samples:DTTestBuilding;1. Check that the Model ID provided is valid by doing a Model_List API call."}}, [
    'Content-Length',
    '214',
    'Content-Type',
    'application/json; charset=utf-8',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:27 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}])
    .query(true)
    .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:28.1839454+00:00"}], [
    'Content-Length',
    '161',
    'Content-Type',
    'application/json; charset=utf-8',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:27 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/digitaltwins/digitalTwin161015522865606318')
    .query(true)
    .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522865606318. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [
    'Content-Length',
    '282',
    'Content-Type',
    'application/json; charset=utf-8',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:27 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .put('/digitaltwins/digitalTwin161015522865606318', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"})
    .query(true)
    .reply(200, {"$dtId":"digitalTwin161015522865606318","$etag":"W/\"245b833e-d94e-4ddd-af33-3eebc597b264\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:28.2721991Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:28.2721991Z"}}}, [
    'Content-Length',
    '340',
    'Content-Type',
    'application/json; charset=utf-8',
    'ETag',
    'W/"245b833e-d94e-4ddd-af33-3eebc597b264"',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:27 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .patch('/digitaltwins/digitalTwin161015522865606318', [{"op":"replace","path":"/AverageTemperature","value":42}])
    .query(true)
    .reply(204, "", [
    'Content-Length',
    '0',
    'ETag',
    'W/"c5b037b2-088b-4040-ba9e-f2626d57847e"',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:27 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .get('/digitaltwins/digitalTwin161015522865606318')
    .query(true)
    .reply(200, {"$dtId":"digitalTwin161015522865606318","$etag":"W/\"c5b037b2-088b-4040-ba9e-f2626d57847e\"","AverageTemperature":42,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:28.3189623Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:28.2721991Z"}}}, [
    'Content-Length',
    '340',
    'Content-Type',
    'application/json; charset=utf-8',
    'ETag',
    'W/"c5b037b2-088b-4040-ba9e-f2626d57847e"',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:28 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/digitaltwins/digitalTwin161015522865606318')
    .query(true)
    .reply(204, "", [
    'Content-Length',
    '0',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:28 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/models/dtmi%3Asamples%3ADTTestBuilding%3B1')
    .query(true)
    .reply(204, "", [
    'Content-Length',
    '0',
    'Strict-Transport-Security',
    'max-age=2592000',
    'Date',
    'Sat, 09 Jan 2021 01:20:28 GMT'
  ]);
  