config_1.setJMXManagementEnabled(true);
HornetQServer server_0 = HornetQServers.newHornetQServer(config_0, mbeanServer, false);
HornetQServer server_1 = HornetQServers.newHornetQServer(config_1, mbeanServer, false);
ObjectNameBuilder builder_0 = ObjectNameBuilder.DEFAULT;
ObjectNameBuilder builder_1 = ObjectNameBuilder.create(jmxDomain_1);
checkNoResource(builder_0.getHornetQServerObjectName());
checkNoResource(builder_1.getHornetQServerObjectName());
server_0.start();
checkResource(builder_0.getHornetQServerObjectName());
checkNoResource(builder_1.getHornetQServerObjectName());
server_1.start();
checkResource(builder_0.getHornetQServerObjectName());
checkResource(builder_1.getHornetQServerObjectName());
server_0.stop();
checkNoResource(builder_0.getHornetQServerObjectName());
checkResource(builder_1.getHornetQServerObjectName());
server_1.stop();
checkNoResource(builder_0.getHornetQServerObjectName());
checkNoResource(builder_1.getHornetQServerObjectName());
}