Enhanced code with constants and minor fixes to make it testable.
A unit test case. Currently only testing put/get to queues and topics.
It can be extended easily.