XSSimpleTypeDefinition st = (XSSimpleTypeDefinition) model
.getTypeDefinition("ST10", "XSFacetTest");
// Item 0 is minInclusive
XSFacet minLength = (XSFacet) st.getFacets().item(1);
XSAnnotation annotation = minLength.getAnnotation();
assertEquals("TEST14_ANNOTATION_" + synth, expected, trim(annotation
.getAnnotationString()));
XSObjectList annotations = minLength.getAnnotations();
assertEquals(
"TES14_ANNOTATIONS_" + synth,
expected,
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));
if (synth.booleanValue() == true) {
// Item 0 is minInclusive
XSFacet maxLength = (XSFacet) st.getFacets().item(2);
annotation = maxLength.getAnnotation();
assertEquals("TEST14_ANNOTATION_" + synth, expected1,
trim(annotation.getAnnotationString()));
annotations = maxLength.getAnnotations();
assertEquals("TES14_ANNOTATIONS_" + synth, expected1,
trim(((XSAnnotation) annotations.item(0))
.getAnnotationString()));
}