private void annotationsTest5(XSModel model) {
String expected = "<annotation sn:att=\"synth\" id=\"ANNOT2\" xmlns=\"http://www.w3.org/2001/XMLSchema\" xmlns:sv=\"XSNotationAnnotationsTest\" xmlns:sn=\"SyntheticAnnotation\" > "
+ "<documentation>DOC1</documentation>" + "</annotation>";
XSNotationDeclaration notation = model.getNotationDeclaration(
"notation4", "XSNotationAnnotationsTest");
XSAnnotation annotation = notation.getAnnotation();
assertNotNull("TEST5_ANNOTATION", annotation);
assertEquals("TEST5_ANNOTATION_EQ", trim(expected), trim(annotation
.getAnnotationString()));
XSObjectList annotations = notation.getAnnotations();
assertEquals("TEST5_ANNOTATIONS", 1, annotations.getLength());
assertEquals(
"TEST5_ANNOTATIONS_EQ",
trim(expected),
trim(((XSAnnotation) annotations.item(0)).getAnnotationString()));