cat.debug(">test04CheckRevoked()");
log.debug(">test04CheckRevoked()");
    public void test04CheckRevoked() throws Exception {        cat.debug(">test04CheckRevoked()");        ICertificateStoreSessionRemote store = storehome.create();        // List all certificates for user foo, which we have created in TestSignSession        Collection certfps = store.findCertificatesBySubject(new Admin(Admin.TYPE_INTERNALUSER), "C=SE, O=AnaTom, CN=foo");        assertNotNull("failed to list certs", certfps);        assertTrue("failed to list certs", certfps.size() != 0);        // Verify that cert are revoked        Iterator iter = certfps.iterator();        while (iter.hasNext()) {            X509Certificate  cert = (X509Certificate)iter.next();            String fp = CertTools.getFingerprintAsString(cert);            CertificateDataPK revpk = new CertificateDataPK(fp);            CertificateData rev = home.findByPrimaryKey(revpk);            assertTrue(rev.getStatus() == CertificateData.CERT_REVOKED);        }        cat.debug("<test04CheckRevoked()");    }