cat.debug("<test01CreateNewUser()");
log.debug("<test01CreateNewUser()");
    public void test01CreateNewUser() throws Exception {        cat.debug(">test01CreateNewUser()");        // Make user that we know later...        Object obj1 = ctx.lookup("UserData");        UserDataHome userhome = (UserDataHome) javax.rmi.PortableRemoteObject.narrow(obj1, UserDataHome.class);        username = genRandomUserName();        pwd = genRandomPwd();        try {            UserDataRemote createdata = userhome.create(username, pwd, "C=SE, O=AnaTom, CN="+username);            assertNotNull("Failed to create user "+username, createdata);            createdata.setType(SecConst.USER_ENDUSER);            createdata.setSubjectEmail(username+"@anatom.se");            cat.debug("created user: "+username+", "+pwd+", C=SE, O=AnaTom, CN="+username);        } catch (RemoteException re) {            if (re.detail instanceof DuplicateKeyException) {                assertNotNull("Cannot create random user "+username, null);            }        } catch (DuplicateKeyException dke) {            assertNotNull("Cannot create random user "+username, null);        }        cat.debug("<test01CreateNewUser()");    }