// For some reason surefire finds the wrong jndi.properties, so we specify the factory here.
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
InitialContext ctx = new InitialContext(props);
RemoteKernelController controller = (RemoteKernelController) ctx.lookup("RemoteKernelController");
System.out.println(controller);
AbstractBeanMetaData bmd = new AbstractBeanMetaData("VMIdentifier", VMIdentifierImpl.class.getName());
controller.install(bmd);
VMIdentifier identifierHere = new VMIdentifierImpl();
VMID firstHere = identifierHere.getCurrentVMID();
VMID secondHere = identifierHere.getCurrentVMID();