ServerManagement.setDefaultSecurityConfig(toElement(defaultSecurityConfig));
ServerManagement.setDefaultSecurityConfig(defaultSecurityConfig);
   protected void setUp() throws Exception   {      super.setUp();      ServerManagement.start("all");            setupDestinations();            final String defaultSecurityConfig =          "<security><role name=\"def\" read=\"true\" write=\"true\" create=\"true\"/></security>";      oldDefaultConfig = ServerManagement.getDefaultSecurityConfig();      ServerManagement.setDefaultSecurityConfig(toElement(defaultSecurityConfig));                   InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment());            cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");            testQueue = (Queue)ic.lookup("/queue/testQueue");      testTopic = (Topic)ic.lookup("/topic/testTopic");      securedTopic = (Topic)ic.lookup("/topic/securedTopic");      unsecuredTopic = (Topic)ic.lookup("/topic/unsecuredTopic");            drainDestination(cf, testQueue);                    }