Please use the @ServerSetup and @Deployment approach used elsewhere in the testsuite, @ServerSetup to get the JMS stuff set up / torn down before/after the class' tests execute, @Deployment to manage the deployment. I don't see anything in this test that needs a non-standard approach.