routes({
'/body': req => json({ isReadable: req.body instanceof Readable }),
'/boom': () => { throw Boom.unauthorized('error message', 'Basic', { realm: 'protected area'}) },
'/broke': () => ({ body: errorStream() }),
'/buffer': K({ body: Buffer.from([0x62,0x75,0x66,0x66,0x65,0x72]) }),
'/cookie': compose(json, prop('cookies')),
'/error': () => { throw new Error('error') },
'/http': () => { throw new NotFound() },
'/joi': () => validate(Joi.string(), 123),
'/json': K(json({})),
'/original': req => json({ hasOriginal: req.original instanceof http.IncomingMessage }),
'/protocol': compose(json, pick(['protocol'])),
'/none': K({ body: undefined }),
'/stream': () => ({ body: str('stream') }),
'/string': K({ body: 'string' }),
'/url': compose(json, pick(['pathname', 'query']))
})