def test_createStompListener(self):
    connection = module.stomp.Connection()
    listener = module.StompListener(testCallback, ACKNOWLEDGEMENT, connection, MESSENGERID)

    self.assertEqual(listener.callback, testCallback)
    self.assertEqual(listener.ack, ACKNOWLEDGEMENT)
    self.assertEqual(listener.connection, connection)
    self.assertEqual(listener.mId, MESSENGERID)
    def test_createStompListener(self):
        connection = module.stomp.Connection()
        messengerId = 'producer1'
        listener = module.StompListener(testCallback, ACKNOWLEDGEMENT,
                                        connection, messengerId)

        self.assertEqual(listener.callback, testCallback)
        self.assertEqual(listener.ack, ACKNOWLEDGEMENT)
        self.assertEqual(listener.connection, connection)
        self.assertEqual(listener.mId, messengerId)