public void testFindRevokedCertificateByPrimaryKeyOK() throws ReadException {
CRLIssuer issuer = new CRLIssuer();
issuer.setId("1111111111111111111111111111111111111111");
issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
RevokedCertificateCompositePrimaryKey pk = new RevokedCertificateCompositePrimaryKey(issuer, new BigInteger("11223344"));
RevokedCertificate certificate = this.service.findByPrimaryKey(pk);
RevokedCertificate expected = new RevokedCertificate();
expected.setPrimaryKey(new RevokedCertificateCompositePrimaryKey(issuer, new BigInteger("11223344")));
expected.setRevocationReason("UserRequest");
Calendar ts = Calendar.getInstance();
ts.set(Calendar.YEAR, 2012);
ts.set(Calendar.MONTH, Calendar.JANUARY);
ts.set(Calendar.DATE, 1);