*/
public void testXSDAnnotations() throws MalformedURLException
{
String filename = "xsdAnnotation.xsd";
File xsdFile = new File("resources/tools/xsd/annotations/" + filename);
XSModel xsmodel = parseSchema(xsdFile.toURL());
assertNotNull("XSModel is null?", xsmodel);
XSObjectList xsobjlist = xsmodel.getAnnotations();
assertNotNull("Schema Annotation is null?", xsobjlist);
assertTrue("Schema Annotations length > 0", xsobjlist.getLength()>0);
//Test Annotation at the Complex Type Level
XSTypeDefinition xt = xsmodel.getTypeDefinition("USAddress","http://org.jboss.ws/types");
assertTrue("USAddress is a complex type?",xt instanceof XSComplexTypeDefinition);
XSComplexTypeDefinition xc = (XSComplexTypeDefinition)xt;
XSObjectList xo = xc.getAnnotations();
assertTrue("There is one annotation", xo.getLength() == 1);
//Test Annotation at the Global Element Level
XSElementDeclaration xe = xsmodel.getElementDeclaration("myAddress","http://org.jboss.ws/types");
XSAnnotation xa = xe.getAnnotation();
assertNotNull("Annotation at element level is not null?",xa);
}