def METHOD_NAME(self):
    previous_propagator = get_global_textmap()
    try:
        set_global_textmap(MockTextMapPropagator())
        function_name = "testFunction"
        self._create_lambda_function(
            function_name, return_headers_lambda_str()
        )
        # 2 spans for create IAM + create lambda
        self.assertEqual(2, len(self.memory_exporter.get_finished_spans()))
        self.memory_exporter.clear()
        response = self.client.invoke(
            Payload=json.dumps({}),
            FunctionName=function_name,
            InvocationType="RequestResponse",
        )
        span = self.assert_invoke_span(function_name)
        span_context = span.get_span_context()
        # # assert injected span
        headers = json.loads(response["Payload"].read().decode("utf-8"))
        self.assertEqual(
            str(span_context.trace_id),
            headers[MockTextMapPropagator.TRACE_ID_KEY],
        )
        self.assertEqual(
            str(span_context.span_id),
            headers[MockTextMapPropagator.SPAN_ID_KEY],
        )
    finally:
        set_global_textmap(previous_propagator)