def METHOD_NAME(self):
    request_data = bytearray([2, 3, 4])
    request_frame = bytearray([0, 0, 0, 3]) + request_data
    request_payload = base64.b64encode(request_frame)
    response_data = bytearray([6, 7, 8, 9, 10, 11])
    @gen.coroutine
    def process_data(_, oprot):
        oprot.get_transport().write(response_data)
    self.processor.process.side_effect = process_data
    headers = {
        'x-frugal-payload-limit': '5',
    }
    response = self.fetch('/frugal', method='POST', body=request_payload,
                          headers=headers)
    self.assertEqual(413, response.code)
    self.assertTrue(self.processor.process.called)
    iprot, _ = self.processor.process.call_args[0]
    self.assertEqual(request_data, iprot.get_transport().getvalue())