+ "<arr>1</arr><arr>2</arr><arr>3</arr><bean><name>Name</name></bean><i>1</i><str>ABC</str>"
+ "</MyBean>";
@Test
public void testTransformation() throws Exception {
JavaBean2XMLStreamReaderTransformer t2 = new JavaBean2XMLStreamReaderTransformer();
MyBean bean = new MyBean();
bean.str = "ABC";
bean.i = 1;
bean.arr = new long[] {1, 2, 3};
bean.bean = new AnotherBean();
bean.bean.setName("Name");
XMLStreamReader reader = t2.transform(bean, null);
XMLStreamReader2String t3 = new XMLStreamReader2String(new DefaultExtensionPointRegistry());
String xml = t3.transform(reader, null);
XMLAssert.assertXMLEqual(XML_RESULT, xml);
}