SchemaBinding schema = JBossXBBuilder.build(root);
ElementBinding e = schema.getElement(new QName("root"));
assertNotNull(e);
TermBinding t = e.getType().getParticle().getTerm();
assertTrue(t instanceof SequenceBinding || t instanceof UnorderedSequenceBinding);
ModelGroupBinding s = (ModelGroupBinding) t;
Collection<ParticleBinding> particles = s.getParticles();
assertEquals(1, particles.size());
ParticleBinding p = particles.iterator().next();
t = p.getTerm();
assertTrue(t instanceof ChoiceBinding);
//assertEquals(0, p.getMinOccurs());