@Test
  public void testLookup() throws Exception {
    ContextImpl ctx = new ContextImpl();
    Object obj = new Object();
    ctx.rebind("a/b/c/d", obj);
    assertEquals(obj, ctx.lookup("a/b/c/d"));

    ctx.bind("a", obj);
    assertEquals(obj, ctx.lookup("a"));
  }
Tests ability to list bindings for a context - specified by name through object reference.
geode-core/src/test/java/org/apache/geode/internal/jndi/ContextJUnitTest.java