}
private void unmarshalCollections(Reader xmlReader) throws JBossXBException
{
String xsd = getFullPath("xml/collections.xsd");
SchemaBinding schema = XsdBinder.bind(xsd);
schema.setIgnoreUnresolvedFieldOrClass(false);
String ns = "http://www.jboss.org/test/xml/collections";
QName rootQName = new QName(ns, "collections");
TypeBinding type = schema.getType(rootQName);
assertNotNull(type);
schema.addElement(rootQName, type);
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
Collections collections;
collections = (Collections)unmarshaller.unmarshal(xmlReader, schema);
assertEquals(Collections.getInstance(), collections);