InitialContext ctx = new InitialContext();
Context fooCtx = ctx.createSubcontext("jca:foo");
fooCtx.createSubcontext("bar");
ctx.bind("jca:foo/bar/baz", 1);
assertEquals(ctx.lookup("jca:foo/bar/baz"), 1);
ctx.rebind("jca:foo/bar/baz", 2);
assertEquals(ctx.lookup("jca:foo/bar/baz"), 2);
}
/*Disable this one, have to update MockServiceRegistration, MockServiceReference in kernel module