// Verify the cached counter equals to the count of elements retrieved by actual enumeration,
// and that the nodes are alphabetically sorted
int enCount = 0;
String nodeText = "";
RadixEnumerator en = (RadixEnumerator) d.iterator();
while (en.hasNext()) {
en.next();
assertTrue(cSharpStringCompare(nodeText, en.getCurrentKey()) < 0);
nodeText = en.getCurrentKey();
enCount++;
}
assertEquals(counter.val, enCount);
assertEquals(d.lookup("abcdefg"), abcdefgValue);