@Test
@DisplayName("throws a CertificateValidationException when the signature cannot be validated")
void crlFetcherThrowsCertValidationExceptionWhitFalseCertificate() throws Exception
{

  X509Certificate certificate = (X509Certificate)cf.generateCertificate(CertificationRevocationListImplTest.class.getResourceAsStream("/wrong-signature-cert.cer"));
  HttpCrlFetcher crlFetcher = getCrlFetcher(certificate);
  CertificateValidationException certificateValidationException = Assertions.assertThrows(CertificateValidationException.class,
                                                                                          () -> crlFetcher.download(HTTP_TEST_URL));
  Assertions.assertEquals("Could not verify CRL", certificateValidationException.getMessage());
}