Collection certs = store.findCertificatesByUsername(admin, "ocspTest4");
Collection certs = store.findCertificatesByUsername(admin, "ocspTest");
    private X509Certificate getTestCert( boolean isRevoked ) throws RemoteException, CreateException {        ICertificateStoreSessionRemote store = storehome.create();        Collection certs = store.findCertificatesByUsername(admin, "ocspTest4");        Iterator i = certs.iterator();        while ( i.hasNext() ) {            X509Certificate cert = (X509Certificate)i.next();            if ( isRevoked==(store.isRevoked(admin, cert.getIssuerDN().toString(), cert.getSerialNumber()).getReason()!=RevokedCertInfo.NOT_REVOKED) )                return cert;        }        assertNotNull("Misslyckades hmta cert", null);        return null;    }