env.setProperty(Context.PROVIDER_URL, jndiURLs[0]);
env.setProperty("jnp.disableDiscovery", "true");
InitialContext ctx = new InitialContext(env);
VMTester tester = (VMTester) ctx.lookup(TESTER_JNDI_NAME);
VMID local = tester.getVMID();
assertNotNull("Got the local VMID", local);
Properties env1 = new Properties();
env1.setProperty(Context.PROVIDER_URL, jndiURLs[1]);
env1.setProperty("jnp.disableDiscovery", "true");
ctx = new InitialContext(env1);
VMTester remote = (VMTester) ctx.lookup(jndiName);
// This call instantiates the SFSB if needed
VMID remoteID = remote.getVMID();
assertNotNull("Got the remote VMID", remoteID);
// Pass the proxy back to the server and invoke getVMID() on it
VMID passThroughID = tester.getVMIDFromRemote(remote);
assertNotNull("Got the remote VMID", passThroughID);
if (expectLocal)
assertEquals("Call stayed local", local, passThroughID);
else