priKey);
PkiMessageDecoder decoder = new PkiMessageDecoder(getRecipient(),
envDecoder);
Transport transport = new HttpGetTransport(getURL());
EnrollmentTransaction trans = new EnrollmentTransaction(transport,
encoder, decoder, csr);
State state = trans.send();
assertThat(state, is(State.CERT_REQ_PENDING));
IssuerAndSubject ias = new IssuerAndSubject(X500Utils.toX500Name(sender
.getIssuerX500Principal()), pollName);
trans = new EnrollmentTransaction(transport, encoder, decoder, ias,
trans.getId());
state = trans.send();
assertThat(state, is(State.CERT_REQ_PENDING));
}