assert fqn1.hashCode() == fqn2.hashCode();
assert fqn1.equals(fqn2);
}
public void testIteration() {
Fqn fqn = Fqn.fromString("/a/b/c");
assert 3 == fqn.size();
Fqn tmp_fqn = Fqn.ROOT;
assert 0 == tmp_fqn.size();
for (int i = 0; i < fqn.size(); i++) {
String s = (String) fqn.get(i);
tmp_fqn = Fqn.fromRelativeElements(tmp_fqn, s);
assert tmp_fqn.size() == i + 1;
}
assert 3 == tmp_fqn.size();
assert fqn.equals(tmp_fqn);
}