Collection certfps = store.findCertificatesBySubjectAndIssuer(new Admin(Admin.TYPE_INTERNALUSER), "C=SE, O=AnaTom, CN=foo","TODO");
Collection certfps = store.findCertificatesBySubjectAndIssuer(new Admin(Admin.TYPE_INTERNALUSER), subjectDN, issuerDN);
    public void test04CheckRevoked() throws Exception {        log.debug(">test04CheckRevoked()");        ICertificateStoreSessionRemote store = storehome.create();        // List all certificates for user foo, which we have created in TestSignSession        Collection certfps = store.findCertificatesBySubjectAndIssuer(new Admin(Admin.TYPE_INTERNALUSER), "C=SE, O=AnaTom, CN=foo","TODO");        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);            long date = rev.getRevocationDate();            String date1 = new Date(date).toString();            String date2 = new Date(revDate).toString();            assertEquals("Revocation date is not as expected: ",date2,date1);            assertTrue(rev.getStatus() == CertificateData.CERT_REVOKED);        }        log.debug("<test04CheckRevoked()");    }