cat.debug("List certs for foo: "+certfps.size());
log.debug("List certs for foo: "+certfps.size());
    public void test03listAndRevoke() throws Exception {        cat.debug(">test03listAndRevoke()");        ICertificateStoreSessionRemote store = storehome.create();        // List all certificates to see        Collection certfps = store.listAllCertificates(new Admin(Admin.TYPE_INTERNALUSER));        assertNotNull("failed to list certs", certfps);        assertTrue("failed to list certs", certfps.size() != 0);        int size = certfps.size();        cat.debug("List certs: "+size);        // List all certificates for user foo, which we have created in TestSignSession        certfps = store.findCertificatesBySubject(new Admin(Admin.TYPE_INTERNALUSER), "C=SE, O=AnaTom, CN=foo");        assertTrue("something weird with size, all < foos", size >= certfps.size());        cat.debug("List certs for foo: "+certfps.size());        Iterator iter = certfps.iterator();        while (iter.hasNext()) {            X509Certificate  cert = (X509Certificate)iter.next();            String fp = CertTools.getFingerprintAsString(cert);            cat.debug(fp);            // Revoke all foos certificates            CertificateDataPK revpk = new CertificateDataPK(fp);            CertificateData rev = home.findByPrimaryKey(revpk);            if (rev.getStatus() != CertificateData.CERT_REVOKED) {                rev.setStatus(CertificateData.CERT_REVOKED);                rev.setRevocationDate(new Date());                cat.debug("Revoked cert "+fp);            } else {                cat.debug("Cert '"+fp+"' already revoked.");            }        }        cat.debug("<test03listAndRevoke()");    }