def METHOD_NAME(self):
    with self.assertRaises(Exception):
        self.client.send_message(
            QueueUrl="non-existing", MessageBody="content"
        )
    spans = self.memory_exporter.get_finished_spans()
    assert spans
    self.assertEqual(len(spans), 1)
    span = spans[0]
    self.assertEqual(span.attributes["rpc.method"], "SendMessage")
    self.assertEqual(
        span.attributes[SpanAttributes.MESSAGING_SYSTEM], "aws.sqs"
    )
    self.assertEqual(
        span.attributes[SpanAttributes.MESSAGING_URL], "non-existing"
    )