X509Certificate cert = (X509Certificate) remote.createCertificate(new Admin( Admin.TYPE_INTERNALUSER), "foo", "foo123", keys.getPublic());
X509Certificate cert = (X509Certificate) remote.createCertificate(admin, "foo", "foo123", keys.getPublic());
    public void test02SignSession() throws Exception {        log.debug(">test02SignSession()");        keys = genKeys();        // user that we know exists...        X509Certificate cert = (X509Certificate) remote.createCertificate(new Admin(                    Admin.TYPE_INTERNALUSER), "foo", "foo123", keys.getPublic());        assertNotNull("Misslyckades skapa cert", cert);        log.debug("Cert=" + cert.toString());        //FileOutputStream fos = new FileOutputStream("testcert.crt");        //fos.write(cert.getEncoded());        //fos.close();        log.debug("<test02SignSession()");    }