assertNotNull(schema.getLocation());
l = schema.getElementModel();
assertEquals(2, l.size());
ElementModel em = (ElementModel) l.get(0);
assertEquals("foo1", em.getElementName());
assertEquals(0, em.getElementModel().size());
List al = em.getAttributeModels();
assertEquals(2, al.size());
AttributeModel am = (AttributeModel) al.get(0);
assertEquals("bar", am.getName());
assertEquals(true, am.isRequired());
am = (AttributeModel) al.get(1);
assertEquals("biff", am.getName());
em = (ElementModel) l.get(1);
assertEquals("foo2", em.getElementName());
assertEquals(2, em.getAttributeModels().size());
l = em.getElementModel();
assertEquals(1, l.size());
em = (ElementModel) l.get(0);
assertEquals(1, em.getAttributeModels().size());
}