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());
assertEquals("glob", am.getDefault());
em = (ElementModel) l.get(1);
assertEquals("foo2", em.getElementName());
assertEquals(2, em.getAttributeModels().size());