# Testing your integration for breaking changes
source: https://developer.mastercard.com/mastercard-gateway/documentation/tutorials-and-guides/migration-guides/test-your-int-breaking-change/index.md

You can test for API changes that could break an integration by generating chaotic responses. Chaotic responses include random data elements and sequencing changes that your integration may not expect, but that are valid non-breaking changes. This allows you to verify that your integration will remain compatible with future API versions.

## Chaotic response FAQs {#chaotic-response-faqs}

The preconditions to use chaotic responses are as follows:

* Only applicable to REST-JSON API requests.
* Not designed for Name-Value Pair (NVP) API requests.
* Only available for test merchants.
* Merchants must configure this capability in the Merchant Administrator application to enable or disable it.
The Chaos Generator tool is available now for use. The Integrators can test their current integrations using chaotic responses to verify if their API response parser can handle unexpected responses in a "non-breaking" manner. The response parser will ignore tags that are not required. To enable chaotic responses:  
**a.** Enable the header name X-MC-Chaotic-Response in the list of headers sent in the request.  
**b.** This header does not require a value and enables chaotic responses, that is, it allows the injection of chaos nodes in the response body. Only the header name must be present in the headers sent in the request.  
*i.* The request header is: X-MC-Chaotic-Response  
*ii.* The response header is: "X-MC-Chaotic-Response-\<12 last characters of an UUID\>"  
For more information, see the [chaotic response](https://developer.mastercard.com/mastercard-gateway/documentation/testing/test-your-int/direct-payment/index.md#chaotic-response) testing steps. Yes, a Postman collection and environment are available from the [Downloads](https://gateway.mastercard.com/api/documentation/downloads/index.html?locale=en_US) page to help with testing. Contact the [Mastercard Gateway support team](mailto:gateway_support@mastercard.com) if you need support to make changes after chaos testing. This may require opening a project with the Mastercard Gateway Implementation team.
