@Test
 public void getCrlFromLdapWithNoCaching() throws Exception {
   for (int i = 0; i < 10; i++) {
     CacheManager.getInstance().removeAllCaches();
     final Cache cache = new Cache("crlCache-1", 100, false, false, 20, 10);
     CacheManager.getInstance().addCache(cache);
     final CRLDistributionPointRevocationChecker checker =
         new CRLDistributionPointRevocationChecker(cache, fetcher);
     checker.setThrowOnFetchFailure(true);
     checker.setUnavailableCRLPolicy(new AllowRevocationPolicy());
     checker.init();
     final X509Certificate cert = CertUtils.readCertificate(new ClassPathResource("ldap-crl.crt"));
     checker.check(cert);
   }
 }