assertEquals(expected, result);
}
public void testSimpleBinding() throws Exception
{
SchemaBinding schemaBinding = JBossXBBuilder.build(root);
assertNotNull(schemaBinding);
QName qName = SimpleTypeBindings.typeQName(root);
assertNotNull(qName);
TypeBinding expectedTypeBinding = schemaBinding.getType(qName);
QName elementName = new QName(XMLConstants.NULL_NS_URI, JBossXBBuilder.generateXMLNameFromJavaName(root.getSimpleName(), true, true));
ElementBinding elementBinding = schemaBinding.getElement(elementName);
assertNotNull(elementBinding);
assertTrue(expectedTypeBinding == elementBinding.getType());
}