public void testOrder() throws Exception {
String xsd = generateOrderSchema();
StringWriter out = new StringWriter();
out.write("<?xml version='1.0'?>");
BeanWriter writer = new BeanWriter(out);
writer.getXMLIntrospector().getConfiguration().setElementNameMapper(new HyphenatedNameMapper());
writer.getXMLIntrospector().getConfiguration().setAttributeNameMapper(new HyphenatedNameMapper());
writer.getXMLIntrospector().getConfiguration().setAttributesForPrimitives(true);
writer.getXMLIntrospector().getConfiguration().setWrapCollectionsInElement(false);
writer.getBindingConfiguration().setMapIDs(false);
OrderBean bean = new OrderBean("XA-2231",