revDate = new Date().getTime();
    public void test03listAndRevoke() throws Exception {        log.debug(">test03listAndRevoke()");        ICertificateStoreSessionRemote store = storehome.create();        // List all certificates to see        Collection certfps = store.listAllCertificates(new Admin(Admin.TYPE_INTERNALUSER), "TODO");        assertNotNull("failed to list certs", certfps);        assertTrue("failed to list certs", certfps.size() != 0);        int size = certfps.size();        log.debug("List certs: " + size);        // List all certificates for user foo, which we have created in TestSignSession        certfps = store.findCertificatesBySubjectAndIssuer(new Admin(Admin.TYPE_INTERNALUSER), "C=SE, O=AnaTom, CN=foo","TODO");        assertTrue("something weird with size, all < foos", size >= certfps.size());        log.debug("List certs for foo: " + certfps.size());        Iterator iter = certfps.iterator();        while (iter.hasNext()) {            X509Certificate  cert = (X509Certificate)iter.next();            String fp = CertTools.getFingerprintAsString(cert);            log.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.setRevocationReason(RevokedCertInfo.REVOKATION_REASON_AFFILIATIONCHANGED);                rev.setRevocationDate(new Date());                log.debug("Revoked cert "+fp);            } else {                log.debug("Cert '"+fp+"' already revoked.");            }        }        log.debug("<test03listAndRevoke()");    }