IResponseMessage resp = remote.createCertificate(new Admin(Admin.TYPE_INTERNALUSER),
IResponseMessage resp = remote.createCertificate(admin,
    public void test07DSAKey() throws Exception {        log.debug(">test07DSAKey()");        UserDataPK pk = new UserDataPK("foo");        UserDataRemote data = userhome.findByPrimaryKey(pk);        data.setStatus(UserDataRemote.STATUS_NEW);        log.debug("Reset status of 'foo' to NEW");        try {            PKCS10RequestMessage p10 = new PKCS10RequestMessage(keytooldsa);            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());        } catch (Exception e) {            // RSASignSession should throw an IllegalKeyException here.            assertTrue("Expected IllegalKeyException: " + e.toString(),                e instanceof IllegalKeyException);        }        log.debug("<test07DSAKey()");    }