env.setProperty(Context.SECURITY_PRINCIPAL, "jduke");
env.setProperty(Context.SECURITY_CREDENTIALS, "theduke");
InitialContext ctx = new InitialContext(env);
Object obj = ctx.lookup("jacc/Secured");
obj = PortableRemoteObject.narrow(obj, SecuredServiceRemoteHome.class);
SecuredServiceRemoteHome home = (SecuredServiceRemoteHome) obj;
log.debug("Found SecuredServiceRemoteHome");
SecuredServiceRemote bean = home.create();
log.debug("Created SecuredServiceRemote");
Principal callerIdentity = new SimplePrincipal("jduke");
Principal runAsIdentity = new SimplePrincipal("runAsUser");
HashSet expectedCallerRoles = new HashSet();