'The I{JSON}-encoded request body is decoded into Python objects and
passed as keyword arguments to the decorated function.'

@validateLogging(_assertRequestLogged('/foo/bar', 'PUT'))
def test_decode(self, logger):

    objects = {'foo': 'bar', 'baz': ['quux']}
    request = dummyRequest('PUT', '/foo/bar', Headers({'content-type': ['application/json']}), dumps(objects))
    app = self.Application(logger, None)
    render(app.app.resource(), request)
    self.assertEqual(objects, app.kwargs)
