require('proof')(3, require('cadence')(prove))

function prove (async, assert) {
    var UserAgent = require('../..')
    var Transport = require('../../mock')
    var responses = [
        function (request, response, next) {
            response.writeHead(200, 'ignore', { key: 'value' })
            response.end('foo')
            assert(response.getHeader('key'), 'value', 'get header')
            next()
        },
        function (request, response, next) {
            response.writeHead(200)
            response.end('foo')
            next()
        }
    ]
    var transport = new Transport(function (request, response, next) {
        responses.shift()(request, response, next)
    })
    var ua = new UserAgent({ transport: transport })
    async(function () {
        ua.fetch({ url: '/' }, async())
    }, function (body, response, buffer) {
        assert(response.headers, { key: 'value' }, 'headers')
        ua.fetch({ url: '/' }, async())
    }, function (body, response, buffer) {
        assert(response.headers, {}, 'no headers')
    })
}

@@ -385,35 +385,16 @@
 eader')%0A
-            next()%0A
         
@@ -513,27 +513,8 @@
 o')%0A
-            next()%0A
     

Fix `mock.t.js`.