log.debug("reloadcache returned code: "+connection.getResponseCode());
// Now on to the actual tests, with fresh caches
log.info("Testing certificate: "+theCert.getSubjectX500Principal().getName());
final HashID subjectID = HashID.getFromSubjectDN(theCert);
Assert.assertEquals("Certificate fetched by subject DN was wrong.", theCert, getCert(RFC4387URL.sHash, subjectID));
final HashID keyID = HashID.getFromKeyID(theCert);
Assert.assertEquals("Certificate fetched by public key ID was wrong.", theCert, getCert(RFC4387URL.sKIDHash, keyID));
final String sURI = RFC4387URL.iHash.appendQueryToURL(getURL(), subjectID);
// remove keyID from list of CA keyIds to be checked.
Assert.assertTrue("The certificate '"+theCert.getSubjectX500Principal().getName()+"' already tested.", setOfSubjectKeyIDs.remove(keyID.key));