AlwaysFailingOCSPSource implements OCSPSource { @Override public OCSPToken getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken) { return null; }  @Override OCSPToken getRevocationToken(CertificateToken certificateToken, CertificateToken issuerCertificateToken);  }
@Test public void alwaysFailingOcspSourceShouldReturnNullInsteadOfOcspToken() throws Exception { OCSPSource ocspSource = new AlwaysFailingOCSPSource(); assertNull(ocspSource.getRevocationToken(null, null)); }