public void testCreateSchema() throws Exception {
StringWriter sw = new StringWriter();
TransformerHandler t = ((SAXTransformerFactory) TransformerFactory.newInstance()).newTransformerHandler();
t.getTransformer().setOutputProperty(OutputKeys.INDENT, "yes");
t.setResult(new StreamResult(sw));
BeanInfoFactory beanInfoFactory = newBeanInfoFactory();
BeanInfo beanInfo = beanInfoFactory.getBeanInfo(getRootBeanType());
new BeanSchemaWriter(beanInfoFactory).write(beanInfo, t);
System.out.println(sw.toString());
}