String[] namingUrls = getNamingURLs();
String namingUrl = namingUrls[masterIndex];
env.setProperty(Context.PROVIDER_URL, namingUrl);
Context ctx = new InitialContext(env);
HASingletonPojoExample pojo = (HASingletonPojoExample)ctx.lookup("test/cluster/hasingleton/simplepojo");
assertTrue("Pojo in " + namingUrl + " should be deployed as HA singleton", pojo.isMasterNode());
namingUrl = namingUrls[nonMasterIndex];
env.setProperty(Context.PROVIDER_URL, namingUrl);
ctx = new InitialContext(env);
try