UserDataPK pk = new UserDataPK("foo");
UserDataPK pk = new UserDataPK(username);
    public void test03FailAuthenticateUser() throws Exception {        cat.debug(">test03FailAuthenticateUser()");        // user that we know exists...        Object obj1 = ctx.lookup("UserData");        UserDataHome userhome = (UserDataHome) javax.rmi.PortableRemoteObject.narrow(obj1, UserDataHome.class);        UserDataPK pk = new UserDataPK("foo");        UserDataRemote data = userhome.findByPrimaryKey(pk);        // Set status to GENERATED so authentication will fail        data.setStatus(UserDataRemote.STATUS_GENERATED);        boolean authfailed = false;        try {            UserAuthData auth = remote.authenticateUser("foo", "foo123");        } catch (Exception e) {            authfailed = true;        }        assertTrue("Authentication succeeded when it should have failed.", authfailed);        cat.debug("<test03FailAuthenticateUser()");    }