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.NameXmlTransform[] nameXmlTransforms = schemaBindings.getNameXmlTransform();
assertNotNull(nameXmlTransforms);
assertEquals(1, nameXmlTransforms.length);
JAXBSchemaBindings.NameXmlTransform nameXmlTransform = nameXmlTransforms[0];
assertNotNull(nameXmlTransform);
JAXBSchemaBindings.NameTransformation transformation = nameXmlTransform.getTypeName();