cat.debug("Removed it!"); cat.debug("<test08IsRevoked()");
log.debug("Removed it!"); log.debug("<test08IsRevoked()");
    public void test08IsRevoked() throws Exception {        cat.debug(">test08IsRevoked()");        CertificateDataPK pk = new CertificateDataPK();        pk.fingerprint = CertTools.getFingerprintAsString(cert);        CertificateData data3 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data3);        cat.debug("found by key! ="+ data3);        cat.debug("fp="+data3.getFingerprint());        cat.debug("issuer="+data3.getIssuerDN());        cat.debug("subject="+data3.getSubjectDN());        cat.debug("cafp="+data3.getCAFingerprint());        assertNotNull("wrong CAFingerprint", data3.getCAFingerprint());        cat.debug("status="+data3.getStatus());        assertTrue("wrong status", data3.getStatus() == CertificateData.CERT_REVOKED);        cat.debug("type="+data3.getType());        assertTrue("wrong type", (data3.getType() & SecConst.USER_ENDUSER) == SecConst.USER_ENDUSER);        cat.debug("serno="+data3.getSerialNumber());        cat.debug("expiredate="+data3.getExpireDate());        cat.debug("revocationdate="+data3.getRevocationDate());        cat.debug("revocationreason="+data3.getRevocationReason());        assertTrue("wrong reason", (data3.getRevocationReason() & RevokedCertInfo.REVOKATION_REASON_KEYCOMPROMISE) == RevokedCertInfo.REVOKATION_REASON_KEYCOMPROMISE);        cat.debug("Checking if cert is revoked DN:'"+cert.getIssuerDN().toString()+"', serno:'"+cert.getSerialNumber().toString()+"'.");        ICertificateStoreSessionRemote store = storehome.create();        RevokedCertInfo revinfo = store.isRevoked(new Admin(Admin.TYPE_INTERNALUSER), cert.getIssuerDN().toString(), cert.getSerialNumber());        assertNotNull("Certificate not revoked, it should be!", revinfo);        assertTrue("Wrong revocationDate!", revinfo.getRevocationDate().getTime() == data3.getRevocationDate());        assertTrue("Wrong reason!", revinfo.getReason() == data3.getRevocationReason());        home.remove(pk);        cat.debug("Removed it!");        cat.debug("<test08IsRevoked()");    }