'Test for auto-encoding of unicode text.'

@record
def test_send_topic_message_unicode(self):

    data = u'receive    message\u554a\u9f44\u4e02\u72db\u72dc'
    sent_msg = Message(data)
    self._create_topic_and_subscription(self.topic_name, 'MySubscription')
    self.sbs.send_topic_message(self.topic_name, sent_msg)
    received_msg = self.sbs.receive_subscription_message(self.topic_name, 'MySubscription', False)
    self.assertIsNotNone(received_msg)
    self.assertEqual(received_msg.body, data.encode('utf-8'))
