s.add(XmlSchemaKeyref.class.getName());
s.add(XmlSchemaUnique.class.getName());
for (int i = 0; i < c.getCount(); i++) {
Object o = c.getItem(i);
if (o instanceof XmlSchemaKey) {
XmlSchemaKey key = (XmlSchemaKey)o;
assertEquals("keyTest", key.getName());
XmlSchemaXPath selectorXpath = key.getSelector();
assertEquals("tns:products/tns:productName",
selectorXpath.getXPath());
XmlSchemaObjectCollection fields = key.getFields();
assertEquals(1, fields.getCount());
XmlSchemaXPath fieldXpath = null;
for (int j = 0; j < fields.getCount(); j++) {
fieldXpath = (XmlSchemaXPath)fields.getItem(j);
}