synth);
XSModel model = fSchemaLoader
.loadURI(getResourceURL("XSParticleTest01.xsd"));
XSComplexTypeDefinition ct = (XSComplexTypeDefinition) model
.getTypeDefinition("CT4", "XSParticleTest");
XSParticle choice = ct.getParticle();
XSObjectList annotations = choice.getAnnotations();
assertEquals(
"TEST7_ANNOTATIONS_1_" + synth,
expected,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
XSModelGroup mg = (XSModelGroup) choice.getTerm();
annotations = mg.getAnnotations();
assertEquals(
"TEST7_ANNOTATIONS_2_" + synth,
expected,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
XSParticle seq = (XSParticle) mg.getParticles().item(0);
annotations = seq.getAnnotations();
assertEquals(
"TEST7_ANNOTATIONS_3_" + synth,
expected1,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
mg = (XSModelGroup) seq.getTerm();
annotations = mg.getAnnotations();
assertEquals(
"TEST7_ANNOTATIONS_4_" + synth,
expected1,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
XSParticle elem1 = (XSParticle) mg.getParticles().item(0);
annotations = elem1.getAnnotations();
assertEquals(
"TEST7_ANNOTATIONS_5_" + synth,
expected2,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
XSElementDeclaration elem = (XSElementDeclaration) elem1.getTerm();
XSComplexTypeDefinition ct2 = (XSComplexTypeDefinition) elem
.getTypeDefinition();
XSParticle all = ct2.getParticle();
annotations = all.getAnnotations();
assertEquals(
"TEST7_ANNOTATIONS_6_" + synth,
expected3,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));