IResponseMessage resp = remote.createCertificate(new Admin(Admin.TYPE_INTERNALUSER),
IResponseMessage resp = remote.createCertificate(admin,
    public void test05TestIEPKCS10() throws Exception {        log.debug(">test05TestIEPKCS10()");        UserDataPK pk = new UserDataPK("foo");        UserDataRemote data = userhome.findByPrimaryKey(pk);        data.setStatus(UserDataRemote.STATUS_NEW);        log.debug("Reset status of 'foo' to NEW");        PKCS10RequestMessage p10 = new PKCS10RequestMessage(iep10);        p10.setUsername("foo");        p10.setPassword("foo123");        IResponseMessage resp = remote.createCertificate(new Admin(Admin.TYPE_INTERNALUSER),             p10, Class.forName("se.anatom.ejbca.protocol.X509ResponseMessage"));        X509Certificate cert = CertTools.getCertfromByteArray(resp.getResponseMessage());        assertNotNull("Failed to create certificate", cert);        log.debug("Cert=" + cert.toString());        log.debug("<test05TestIEPKCS10()");    }