BasicOCSPResp brep = sendOCSPPost(req.getEncoded(), true);
// When a certificate is revoked the FNR must not be returned
assertEquals(getFnr(brep), null);
SingleResp[] singleResps = brep.getResponses();
assertEquals("No of SingResps should be 1.", singleResps.length, 1);
SingleResp singleResp = singleResps[0];
CertificateID certId = singleResp.getCertID();
assertEquals("Serno in response does not match serno in request.", certId.getSerialNumber(), ocspTestCert.getSerialNumber());
Object status = singleResp.getCertStatus();
assertTrue("Status is not RevokedStatus", status instanceof RevokedStatus);
RevokedStatus rev = (RevokedStatus) status;
assertTrue("Status does not have reason", rev.hasRevocationReason());
int reason = rev.getRevocationReason();
assertEquals("Wrong revocation reason", reason, RevokedCertInfo.REVOCATION_REASON_KEYCOMPROMISE);