}
assertEquals(names1.size(), names2.size());
Iterator<Name> names1Itr = names1.iterator();
Iterator<Name> names2Itr = names2.iterator();
while (names1Itr.hasNext()) {
Name name1 = names1Itr.next();
Name name2 = names2Itr.next();
assertEquals(name1.getLang(), name2.getLang());
assertEquals(name1.getValue(), name2.getValue());
}
}