XSModelGroupDefinition mgd = model.getModelGroupDefinition("group6",
"XSModelGroup");
XSModelGroup group = mgd.getModelGroup();
XSAnnotation annotation = group.getAnnotation();
assertEquals("TEST6.1_NO_ANNOTATION_" + synth, expected1,
trim(annotation.getAnnotationString()));
XSObjectList annotations = group.getAnnotations();
assertEquals("TEST6.1_NO_ANNOTATIONS_" + synth, 1, annotations
.getLength());
assertEquals(
"TEST6.1_NO_ANNOTATIONS_" + synth,
expected1,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
group = (XSModelGroup) ((XSParticle) group.getParticles().item(0))
.getTerm();
annotation = group.getAnnotation();
assertEquals("TEST6.2_NO_ANNOTATION_" + synth, expected2,
trim(annotation.getAnnotationString()));
annotations = group.getAnnotations();
assertEquals("TEST6.2_NO_ANNOTATIONS_" + synth, 1, annotations
.getLength());
assertEquals(
"TEST6.2_NO_ANNOTATIONS_" + synth,
expected2,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
group = (XSModelGroup) ((XSParticle) group.getParticles().item(0))
.getTerm();
annotation = group.getAnnotation();
assertEquals("TEST6.3_NO_ANNOTATION_" + synth, expected3,
trim(annotation.getAnnotationString()));
annotations = group.getAnnotations();
assertEquals("TEST6.3_NO_ANNOTATIONS_" + synth, 1, annotations
.getLength());
assertEquals(
"TEST6.3_NO_ANNOTATIONS_" + synth,