@Test
@DisplayName("contains an intermediate certificate")
void isOnCrlTest() throws Exception
{

  // Root Certificate
  X509Certificate caCertificate = (X509Certificate)cf.generateCertificate(CertificationRevocationListImplTest.class.getResourceAsStream("/ca.crt"));
  // Document Signer
  X509Certificate iaCertificate = (X509Certificate)cf.generateCertificate(CertificationRevocationListImplTest.class.getResourceAsStream("/ia.crt"));
  Set<X509Certificate> masterList = new HashSet<>();
  masterList.add(caCertificate);
  CertificationRevocationListImpl.initialize(masterList, caCertificate, getCrlFetcher(caCertificate));
  CertificationRevocationListImpl certificationRevocationList = CertificationRevocationListImpl.getInstance();
  Assert.assertTrue(certificationRevocationList.isOnCRL(iaCertificate));
}