title: reason: actual value has 1 more key(s) than expected:
body: <p>I am running karate tests.</p>
  <p>I am posting a request object and i recieve a response object . however in the response object i have one extra field populated .How will i handle the scenario ?</p>
  <p>the following is my test</p>
  <pre><code>@NFRSubscription.feature
  Feature: NFR Subscription API Tests
  
    Background:
      * url __arg.test_service.url
      * configure ssl = false
      * configure httpVersion = 'http2'
  
    Scenario: Create/Patch/Delete NRF subscription by nfInstanceId subscription condition
      * def subscriptionId = ''
      * def createSubscriptionByNfInstanceIdRequest = read('subscription/subscriptionCreateRequest.json')
      * def patchSubscriptionByNfInstanceIdResponse = read('subscription/subscriptionPatchResponse.json')
      * def createSubscriptionByNfInstanceIdResponse = createSubscriptionByNfInstanceIdRequest
  
  
      # Create the NRF subscription by nfInstanceId
      Given path '/nnrf-nfm/v1/subscriptions/'
      And header Content-Type = 'application/json; charset=utf-8'
      And print createSubscriptionByNfInstanceIdRequest
      And request createSubscriptionByNfInstanceIdRequest
      When method post
      Then status 201
      And match response == createSubscriptionByNfInstanceIdResponse
      And match response.subscriptionId == '#present'
      And print response
  </code></pre>
  <p>the content of subscription/subscriptionCreateRequest.json is as follows.</p>
  <pre><code>{
    &quot;nfStatusNotificationUri&quot;: &quot;http://localhost:8080/ip/test&quot;,
    &quot;reqNfInstanceId&quot;: &quot;9c79364e-99e1-42a8-ada1-86c31ad1fa76&quot;, 
    &quot;subscrCond&quot;: {
      &quot;nfInstanceId&quot;: &quot;9c79364e-99e1-42a8-ada1-86c31ad1fa76&quot;
    },
    &quot;validityTime&quot;: &quot;2022-02-18T10:15:15Z&quot;,
    &quot;reqNotifEvents&quot;: [
      &quot;NF_REGISTERED&quot;
    ],
    &quot;plmnId&quot;: {&quot;mcc&quot;: &quot;454&quot;, &quot;mnc&quot; : &quot;93&quot; },
    &quot;nid&quot;: &quot;2465aEB5ff1&quot;,
    &quot;notifCondition&quot;: {
      &quot;monitoredAttributes&quot;: [
        &quot;testattri&quot;
      ]
    },
    &quot;reqNfType&quot;: &quot;NRF&quot;,
    &quot;reqNfFqdn&quot;: &quot;com.openet.com&quot;,
    &quot;reqSnssais&quot;: [
      { &quot;sst&quot;: 10, &quot;sd&quot;: &quot;aA82a7&quot; }
    ],
    &quot;reqPlmnList&quot;: [
      {&quot;mcc&quot;: &quot;454&quot;, &quot;mnc&quot; : &quot;93&quot; }
    ],
    &quot;reqSnpnList&quot;: [
      {&quot;mcc&quot;: &quot;454&quot;, &quot;mnc&quot; : &quot;93&quot; }
    ],
    &quot;servingScope&quot;: [
      &quot;any string&quot;
    ],
    &quot;nrfSupportedFeatures&quot;: &quot;CBAdEd1bef9B118EAd8d5bAfc66B59c1D292fD821d&quot;
  }
  </code></pre>
  <p>the content of the file subscription/subscriptionPatchResponse.json is as follows.</p>
  <pre><code>{
    &quot;nfStatusNotificationUri&quot;: &quot;http://localhost:8080/ip/test&quot;,
    &quot;reqNfInstanceId&quot;: &quot;9c79364e-99e1-42a8-ada1-86c31ad1fa76&quot;, 
    &quot;subscrCond&quot;: {
      &quot;nfInstanceId&quot;: &quot;9c79364e-99e1-42a8-ada1-86c31ad1fa76&quot;
    },
    &quot;validityTime&quot;: &quot;2023-03-07T23:20:50Z&quot;,
    &quot;reqNotifEvents&quot;: [
      &quot;NF_REGISTERED&quot;
    ],
    &quot;plmnId&quot;: {&quot;mcc&quot;: &quot;454&quot;, &quot;mnc&quot; : &quot;93&quot; },
    &quot;nid&quot;: &quot;2465aEB5ff1&quot;,
    &quot;notifCondition&quot;: {
      &quot;monitoredAttributes&quot;: [
        &quot;testattri&quot;
      ]
    },
    &quot;reqNfType&quot;: &quot;NRF&quot;,
    &quot;reqNfFqdn&quot;: &quot;com.openet.com&quot;,
    &quot;reqSnssais&quot;: [
      { &quot;sst&quot;: 10, &quot;sd&quot;: &quot;aA82a7&quot; }
    ],
    &quot;reqPlmnList&quot;: [
      {&quot;mcc&quot;: &quot;454&quot;, &quot;mnc&quot; : &quot;93&quot; }
    ],
    &quot;reqSnpnList&quot;: [
      {&quot;mcc&quot;: &quot;454&quot;, &quot;mnc&quot; : &quot;93&quot; }
    ],
    &quot;servingScope&quot;: [
      &quot;any string&quot;
    ],
    &quot;nrfSupportedFeatures&quot;: &quot;CBAdEd1bef9B118EAd8d5bAfc66B59c1D292fD821d&quot;
  }
  </code></pre>
  <p>in the response I would expect a new field called subscriptionId .</p>
  <p>my test fails at the moment with the following error .</p>
  <pre><code>16:00:57  com.intuit.karate.exception.KarateException: NFRSubscription.feature:24 - path: $, actual: {nfStatusNotificationUri=http://localhost:8080/ip/test, reqNfInstanceId=9c79364e-99e1-42a8-ada1-86c31ad1fa76, subscrCond={nfInstanceId=9c79364e-99e1-42a8-ada1-86c31ad1fa76}, subscriptionId=608425, validityTime=2022-02-18T10:15:15Z, reqNotifEvents=[&quot;NF_REGISTERED&quot;], plmnId={mcc=454, mnc=93}, nid=2465aEB5ff1, notifCondition={monitoredAttributes=[&quot;testattri&quot;]}, reqNfType=NRF, reqNfFqdn=com.openet.com, reqSnssais=[{&quot;sst&quot;:10,&quot;sd&quot;:&quot;aA82a7&quot;}], reqPlmnList=[{&quot;mcc&quot;:&quot;454&quot;,&quot;mnc&quot;:&quot;93&quot;}], reqSnpnList=[{&quot;mcc&quot;:&quot;454&quot;,&quot;mnc&quot;:&quot;93&quot;}], servingScope=[&quot;any string&quot;], nrfSupportedFeatures=CBAdEd1bef9B118EAd8d5bAfc66B59c1D292fD821d}, expected: {nfStatusNotificationUri=http://localhost:8080/ip/test, reqNfInstanceId=9c79364e-99e1-42a8-ada1-86c31ad1fa76, subscrCond={nfInstanceId=9c79364e-99e1-42a8-ada1-86c31ad1fa76}, validityTime=2022-02-18T10:15:15Z, reqNotifEvents=[&quot;NF_REGISTERED&quot;], plmnId={mcc=454, mnc=93}, nid=2465aEB5ff1, notifCondition={monitoredAttributes=[&quot;testattri&quot;]}, reqNfType=NRF, reqNfFqdn=com.openet.com, reqSnssais=[{&quot;sst&quot;:10,&quot;sd&quot;:&quot;aA82a7&quot;}], reqPlmnList=[{&quot;mcc&quot;:&quot;454&quot;,&quot;mnc&quot;:&quot;93&quot;}], reqSnpnList=[{&quot;mcc&quot;:&quot;454&quot;,&quot;mnc&quot;:&quot;93&quot;}], servingScope=[&quot;any string&quot;], nrfSupportedFeatures=CBAdEd1bef9B118EAd8d5bAfc66B59c1D292fD821d}, reason: actual value has 1 more key(s) than expected: {subscriptionId=608425}
  </code></pre>
  <p>any idea how should i formulate <code>createSubscriptionByNfInstanceIdResponse</code> object to handle an extra dynamically generated field . in other words how can i do the following</p>
  <p>add response.subscriptionId into createSubscriptionByNfInstanceIdResponse and then compare response and
  createSubscriptionByNfInstanceIdResponse object .</p>
  <pre><code>And match response == createSubscriptionByNfInstanceIdResponse
  </code></pre>