} else {
Assert.assertNotSame(ldapContext1, ldapContext2);
}
LOGGER.info("acquired external LDAP context: " + ldapContext1.toString());
LdapCtx c = (LdapCtx)ldapContext1.lookup("dc=jboss,dc=org");
c = (LdapCtx)c.lookup("ou=People");
Attributes attributes = c.getAttributes("uid=jduke");
Assert.assertTrue(attributes.get("description").contains("awesome"));
// resource injection
LookupEjb ejb = (LookupEjb) ctx.lookup("java:module/LookupEjb");
Assert.assertNotNull(ejb);