     ) ->
       command_serve()
         .then ->
-          requestPromise(
-            method: 'GET'
-            url: envStringBaseUrl + '/echo?a=1&b=2'
-            json: true
+          got.post envStringBaseUrl + '/echo?a=1&b=2',
             headers:
               'user-agent': 'integration test'
+            json: true
             body:
               hello: 'world'
-          )
-        .then ([response]) ->
-          test.equal response.statusCode, 200
-          test.deepEqual response.body,
-            method: 'GET'
+        .then (res) ->
+          test.equal res.statusCode, 200
+          expectedBody =
+            method: 'POST'
             url: '/echo?a=1&b=2'
             urlWithoutQuerystring: '/echo'
             query:

    ) ->
      command_serve()
        .then ->
          requestPromise(
            method: 'GET'
            url: envStringBaseUrl + '/xml'
          )
        .then ([response]) ->
          test.equal response.statusCode, 429
          test.equal response.body, '<test></test>'
          test.equal response.headers['content-type'], 'application/xml; charset=utf-8'
          shutdown()
        .then ->
          test.done()

              hello: 'world'
            userAgent: 'integration test'
            ip: '::ffff:127.0.0.1'
            isGzipEnabled: true
            match:
              part: 'echo'
            alsoMatch: {}
