try { ctx = getInitialContext(); Object obj = ctx.lookup("AuthenticationSession"); IAuthenticationSessionHome home = (IAuthenticationSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IAuthenticationSessionHome.class); remote = home.create(); obj = ctx.lookup("UserAdminSession"); IUserAdminSessionHome userhome = (IUserAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IUserAdminSessionHome.class); usersession = userhome.create(); admin = new Admin(Admin.TYPE_INTERNALUSER); obj = ctx.lookup("KeyRecoverySession"); IKeyRecoverySessionHome keyrechome = (IKeyRecoverySessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IKeyRecoverySessionHome.class); keyrecsession = keyrechome.create(); obj = ctx.lookup("RaAdminSession"); IRaAdminSessionHome raadminsessionhome = (IRaAdminSessionHome) javax.rmi.PortableRemoteObject.narrow(obj, IRaAdminSessionHome.class); raadminsession = raadminsessionhome.create(); } catch (Exception e) { e.printStackTrace(); assertTrue("Exception on setup", false); }
    public TestAuthenticationSession(String name) {        super(name);    }