+ "samples" + SEP + "input" + SEP + "keystore2.jks");
KeyStore ks = KeyStore.getInstance("JCEKS");
ks.load(f, "xmlsecurity".toCharArray());
KeyStoreResolver ksResolver = new KeyStoreResolver(ks);
Iterator iter = ksResolver.getIterator();
checkIterator(iter);
// check new iterator starts from the beginning
Iterator iter2 = ksResolver.getIterator();
checkIterator(iter2);
// check the iterators are independent
// check calling next() without calling hasNext()
iter = ksResolver.getIterator();
iter2 = ksResolver.getIterator();
while (iter.hasNext()) {
X509Certificate cert = (X509Certificate) iter.next();
X509Certificate cert2 = (X509Certificate) iter2.next();
if (!cert.equals(cert2)) {