@Test
  public void testBindLookup() throws Exception {
    Object obj1 = "Object1";
    Object obj2 = "Object2";
    Object obj3 = "Object3";
    dataSourceContext.bind("sub21", null);
    dataSourceContext.bind("sub22", obj1);
    initialContext.bind("java:gf/env/sub23", null);
    initialContext.bind("java:gf/env/sub24", obj2);
    // Bind to subcontexts that do not exist
    initialContext.bind("java:gf/env/datasource/sub25/sub26", obj3);

    // Try to lookup
    assertNull(dataSourceContext.lookup("sub21"));
    assertSame(dataSourceContext.lookup("sub22"), obj1);
    assertNull(gemfireContext.lookup("env/sub23"));
    assertSame(initialContext.lookup("java:gf/env/sub24"), obj2);
    assertSame(dataSourceContext.lookup("sub25/sub26"), obj3);
  }
Tests ability to bind name to object.
geode-core/src/test/java/org/apache/geode/internal/jndi/ContextJUnitTest.java