def METHOD_NAME(self, request, context):
    rq_params = json.loads(request.body)
    assert rq_params == self.expected_body_params
    rq_headers = {
        k: v for k, v in request.headers.items() if k in self.expected_headers
    }
    assert rq_headers == self.expected_headers
    context.status_code = self.return_status_code