ADDED:ActiveMQ function test code