usersession.setUserStatus(admin,"foo",UserDataConstants.STATUS_NEW, false);
usersession.setUserStatus(admin,"foo",UserDataConstants.STATUS_NEW);
    public void test05TestIEPKCS10() throws Exception {        log.debug(">test05TestIEPKCS10()");        usersession.setUserStatus(admin,"foo",UserDataConstants.STATUS_NEW, false);        log.debug("Reset status of 'foo' to NEW");        PKCS10RequestMessage p10 = new PKCS10RequestMessage(iep10);        p10.setUsername("foo");        p10.setPassword("foo123");        IResponseMessage resp = remote.createCertificate(admin,                p10, Class.forName("org.ejbca.core.protocol.X509ResponseMessage"));        X509Certificate cert = CertTools.getCertfromByteArray(resp.getResponseMessage());        assertNotNull("Failed to create certificate", cert);        log.debug("Cert=" + cert.toString());        log.debug("<test05TestIEPKCS10()");    }