@BeforeClass
public static void setUpBeforeClass() throws Exception {
configCtx = ConfigurationContextFactory.createEmptyConfigurationContext();
clusteringAgent = new TribesClusteringAgent();
clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
"worker"),
"wso2.as1.domain", "worker", -1);
clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
"mgt"),
"wso2.as1.domain", "mgt", -1);
clusteringAgent.addGroupManagementAgent(new SubDomainAwareGroupManagementAgent(
"mgt"),
"wso2.as2.domain", "mgt", -1);
configCtx.getAxisConfiguration().setClusteringAgent(clusteringAgent);
File f = new File("src/test/resources/loadbalancer.conf");