We decide time ago to include headers dump in new harness tests. Have a look to the following test harness, which use this "headers dump" style in https://github.com/telefonicaid/fiware-orion/blob/develop/test/testharness/accept_fail.test:

In the SHELL part:

```
url="localhost:${BROKER_PORT}/NGSI10/queryContext"
payload='<?xml version="1.0"?>
<queryContextRequest>
  <entityIdList>
        <entityId type="Room" isPattern="false">
          <id>OfficeRoom</id>
        </entityId>
  </entityIdList>
  <attributeList/>
</queryContextRequest>'
curlIt "XML" ${url} "${payload}" "Content-Type: application/xml" "Accept:"
```

which correspond in the REGEXPECT part:

```
HTTP/1.1 200 OK
Content-Length: 155
Content-Type: application/xml
Date: REGEX(.*)

<?xml version="1.0"?>
<queryContextResponse>
  <errorCode>
    <code>404</code>
    <reasonPhrase>No context element found</reasonPhrase>
  </errorCode>
</queryContextResponse>
```