6263646566676869707172
assertEquals("Bar", context.lookup("global/foo/Bar")); context.unbind("global/foo/Bar"); try { context.lookup("global/foo/Bar"); fail(); } catch (NamingException ne) { // ok }
6970717273747576777879
} catch (NamingException ne) { // ok } try { ((Context) ((Context) context.lookup("global")).lookup("foo")) .lookup("Bar"); fail(); } catch (NamingException ne) { // ok }