fieldXpath = (XmlSchemaXPath)fields.getItem(j);
}
assertNotNull(fieldXpath);
assertEquals("@productId", fieldXpath.getXPath());
} else if (o instanceof XmlSchemaKeyref) {
XmlSchemaKeyref keyref = (XmlSchemaKeyref)o;
assertNotNull(keyref);
assertEquals("keyRefTest", keyref.getName());
assertEquals(new QName("http://soapinterop.org/types",
"keyTest"),
keyref.getRefer());
XmlSchemaXPath selectorXpath = keyref.getSelector();
assertEquals("tns:manufacturers/tns:location/tns:productName",
selectorXpath.getXPath());
XmlSchemaObjectCollection fields = keyref.getFields();
assertEquals(1, fields.getCount());
XmlSchemaXPath fieldXpath = null;
for (int j = 0; j < fields.getCount(); j++) {
fieldXpath = (XmlSchemaXPath)fields.getItem(j);
}