'If the request body cannot be decoded as a I{JSON} blob then the
request automatically receives a I{BAD REQUEST} response.'

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

    app = self.Application(logger, None)
    request = dummyRequest('PUT', '/foo/bar', Headers({'content-type': ['application/json']}), 'foo    bar')
    render(app.app.resource(), request)
    self.assertIs(None, app.kwargs)
    expected = CloseEnoughJSONResponse(BAD_REQUEST, Headers({'content-type': ['application/json']}), {u'description': DECODING_ERROR_DESCRIPTION})
    return expected.verify(asResponse(request))
