OCSPReq req = gen.generate();
// Send the request and receive a singleResponse
SingleResp[] singleResps = helper.sendOCSPPost(req.getEncoded(), null, 0, 200);
assertEquals("No of SingleResps should be 2.", 2, singleResps.length);
SingleResp singleResp1 = singleResps[0];
CertificateID certId = singleResp1.getCertID();
assertEquals("Serno in response does not match serno in request.", certId.getSerialNumber(), new BigInteger("1"));
Object status = singleResp1.getCertStatus();
assertTrue("Status is not Unknown", status instanceof UnknownStatus);
SingleResp singleResp2 = singleResps[1];
certId = singleResp2.getCertID();
assertEquals("Serno in response does not match serno in request.", certId.getSerialNumber(), ocspTestCert.getSerialNumber());
status = singleResp2.getCertStatus();
assertEquals("Status is not null (good)", status, null);
}