assertTrue("wrong status", data3.getStatus() == CertificateData.CERT_REVOKED);
assertTrue("wrong status", data3.getStatus() == CertificateDataBean.CERT_REVOKED);
    public void test05FindAgain() throws Exception {        log.debug(">test05FindAgain()");        CertificateDataPK pk = new CertificateDataPK();        pk.fingerprint = CertTools.getFingerprintAsString(cert);        CertificateData data3 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data3);        log.debug("found by key! =" + data3);        log.debug("fp=" + data3.getFingerprint());        log.debug("issuer=" + data3.getIssuerDN());        log.debug("subject=" + data3.getSubjectDN());        log.debug("cafp=" + data3.getCAFingerprint());        assertNotNull("wrong CAFingerprint", data3.getCAFingerprint());        log.debug("status=" + data3.getStatus());        assertTrue("wrong status", data3.getStatus() == CertificateData.CERT_REVOKED);        log.debug("type=" + data3.getType());        assertTrue("wrong type", (data3.getType() & SecConst.USER_ENDUSER) == SecConst.USER_ENDUSER);        log.debug("serno=" + data3.getSerialNumber());        log.debug("expiredate=" + data3.getExpireDate());        log.debug("revocationdate=" + data3.getRevocationDate());        log.debug("revocationreason=" + data3.getRevocationReason());        assertTrue("wrong reason", (data3.getRevocationReason() == RevokedCertInfo.REVOKATION_REASON_AFFILIATIONCHANGED));        log.debug("Looking for cert with DN=" + CertTools.getSubjectDN(cert));        ICertificateStoreSessionRemote store = storehome.create();        Collection certs = store.findCertificatesBySubjectAndIssuer(new Admin(Admin.TYPE_INTERNALUSER), CertTools.getSubjectDN(cert), "TODO");        Iterator iter = certs.iterator();        while (iter.hasNext()) {            X509Certificate xcert = (X509Certificate) iter.next();            log.debug(CertTools.getSubjectDN(xcert) + " - " + xcert.getSerialNumber().toString());            //log.debug(certs[i].toString());        }        log.debug("<test05FindAgain()");    }