Adding attach/detach to ActiveMQ test