SimplePrincipal jduke = new SimplePrincipal("jduke");
SecurityAssociation.setPrincipal(jduke);
SecurityAssociation.setCredential("theduke".toCharArray());
// Lookup the previous Hello binding
String value = (String) naming.lookup(hello);
assertTrue("lookup(Hello) == HelloBinding", value.equals("HelloBinding"));
getLog().info("lookup(Hello) = "+value);
}
finally
{