Context ctx = new InitialContext(env);
getLog().debug("Got InitialContext with " + urls[0]);
HAServiceRemote remote = (HAServiceRemote) ctx.lookup(jndiName);
getLog().debug("Found " + jndiName);
assertEquals("Hello", remote.hello());
String nodeA = remote.getClusterNode();
assertNotNull("Got clusterNode", nodeA);
getLog().debug("nodeA OK");
// Invoke again to check it works with load balancing
assertFalse("Requests load balanced", nodeA.equals(remote.getClusterNode()));