write a test to do it. send n messages with different priorities, then consume n messages and check the the order.
Consumer is too fast. It is consuming message very fast so i can not test it properly. Can i set the Consumer off for some time and after sending the n messages i will bring up consumer up. That time it should consume the Priority 9 message.
Don't start the consumer until the messages are already in the queue.
Isn't this obvious?
That sound good.