fieldXpath = (XmlSchemaXPath)fields.getItem(j);
}
assertNotNull(fieldXpath);
assertEquals("@productId", fieldXpath.getXPath());
} else if (o instanceof XmlSchemaUnique) {
XmlSchemaUnique unique = (XmlSchemaUnique)o;
assertNotNull(unique);
assertEquals("uniqueTest", unique.getName());
XmlSchemaXPath selectorXpath = unique.getSelector();
assertEquals("tns:manufacturers/tns:location",
selectorXpath.getXPath());
XmlSchemaObjectCollection fields = unique.getFields();
assertEquals(1, fields.getCount());
XmlSchemaXPath fieldXpath = null;
for (int j = 0; j < fields.getCount(); j++) {
fieldXpath = (XmlSchemaXPath)fields.getItem(j);
}