JAXBParser parser = newJAXBParser();
InputSource isource = new InputSource(new StringReader(schemaSource));
isource.setSystemId("testSchemaBindings.xsd");
JAXBSchema schema = (JAXBSchema) parser.parse(isource);
JAXBType a = (JAXBType) schema.getType(new XsQName((String) null, "a"));
JAXBSchemaBindings schemaBindings = a.getJAXBSchemaBindings();
JAXBSchemaBindings.Package schemaPackage = schemaBindings.getPackage();
assertNotNull(schemaPackage);
assertEquals(myPackageName, schemaPackage.getName());
JAXBJavadoc javadoc = schemaPackage.getJavadoc();
assertNotNull(javadoc);
assertEquals("Test documentation", javadoc.getText());
JAXBSchemaBindings.NameXmlTransformation[] nameXmlTransformations = schemaBindings.getNameXmlTransformation();
assertNotNull(nameXmlTransformations);
assertEquals(1, nameXmlTransformations.length);
JAXBSchemaBindings.NameXmlTransformation nameXmlTransformation = nameXmlTransformations[0];
assertNotNull(nameXmlTransformation);
JAXBSchemaBindings.NameTransformation transformation = nameXmlTransformation.getTypeName();