Element defaultSecurity = (Element)ServerManagement.getAttribute(ServerManagement.getServerPeerObjectName(), "DefaultSecurityConfig");  Element security = (Element)ServerManagement.getAttribute(destObjectName, "SecurityConfig");  XMLUtil.assertEquivalent(defaultSecurity, security);
assertNull(ServerManagement.getAttribute(destObjectName, "SecurityConfig"));
   public void testDefaultSecurityConfiguration() throws Exception   {      String config =         "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " +         "       name=\"somedomain:service=@TOREPLACE@,name=DefaultSecurity\"" +         "       xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" +         "    <depends optional-attribute-name=\"ServerPeer\">jboss.messaging:service=ServerPeer</depends>" +         "</mbean>";      config = adjustConfiguration(config);      ObjectName destObjectName = deploy(config);      Element defaultSecurity =         (Element)ServerManagement.getAttribute(ServerManagement.getServerPeerObjectName(),                                                "DefaultSecurityConfig");      Element security = (Element)ServerManagement.getAttribute(destObjectName, "SecurityConfig");      XMLUtil.assertEquivalent(defaultSecurity, security);      undeployDestination((String)ServerManagement.getAttribute(destObjectName, "Name"));   }