System.out.println("status="+data3.getStatus());
cat.debug("status="+data3.getStatus());
    public void test07IsRevoked() throws Exception {        cat.debug(">test07IsRevoked()");        CertificateDataPK pk = new CertificateDataPK();        pk.fp = CertTools.getFingerprintAsString(cert);        CertificateData data3 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data3);        System.out.println("found by key! ="+ data3);        System.out.println("fp="+data3.getFingerprint());        System.out.println("issuer="+data3.getIssuerDN());        System.out.println("subject="+data3.getSubjectDN());        System.out.println("cafp="+data3.getCAFingerprint());        assertNotNull("wrong CAFingerprint", data3.getCAFingerprint());        System.out.println("status="+data3.getStatus());        assertTrue("wrong status", data3.getStatus() == CertificateData.CERT_REVOKED);        System.out.println("type="+data3.getType());        assertTrue("wrong type", (data3.getType() & SecConst.USER_ENDUSER) == SecConst.USER_ENDUSER);        System.out.println("serno="+data3.getSerialNumber());        System.out.println("expiredate="+data3.getExpireDate());        System.out.println("revocationdate="+data3.getRevocationDate());        System.out.println("revocationreason="+data3.getRevocationReason());        assertTrue("wrong reason", (data3.getRevocationReason() & CRLData.REASON_KEYCOMPROMISE) == CRLData.REASON_KEYCOMPROMISE);        System.out.println("Checking if cert is revoked DN:'"+cert.getIssuerDN().toString()+"', serno:'"+cert.getSerialNumber().toString()+"'.");        Object obj2 = ctx.lookup("CertificateStoreSession");        ICertificateStoreSessionHome storehome = (ICertificateStoreSessionHome) javax.rmi.PortableRemoteObject.narrow(obj2, ICertificateStoreSessionHome.class);        ICertificateStoreSessionRemote store = storehome.create();        RevokedCertInfo revinfo = store.isRevoked(cert.getIssuerDN().toString(), cert.getSerialNumber());        assertNotNull("Certificate not revoked, it should be!", revinfo);        assertTrue("Wrong revocationDate!", revinfo.getRevocationDate().getTime() == data3.getRevocationDate().getTime());        assertTrue("Wrong reason!", revinfo.getReason() == data3.getRevocationReason());        home.remove(pk);        System.out.println("Removed it!");        cat.debug("<test07IsRevoked()");    }