MULE-6577: Failure to propagate the correlation ID across JMS queues

- Changed test configuration to resolve transport type dynamically.

(cherry picked from commit dc07d218fb645133d7b47f36eceb96c5f444bfca)
(cherry picked from commit cfbd96577f283c2616e5242b37c68fabfc6298ab)