assertThat(certs.getCertificates(null).size(), is(1));
}
@Test(expected = TransportException.class)
public void getNextCaCertificateBad() throws Exception {
GetNextCaCertRequest req = new GetNextCaCertRequest(badIdentifier);
Transport transport = new HttpGetTransport(getURL());
CertStore certs = transport.sendRequest(req,
new GetNextCaCertResponseHandler(getRecipient()));
assertThat(certs.getCertificates(null).size(), is(1));