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();
String xml = t3.transform(reader, null);
assertTrue(xml.contains("<JavaBean2XMLStreamReaderTestCase$MyBean>"
+ "<arr>1</arr><arr>2</arr><arr>3</arr><bean><name>Name</name></bean>"
+ "<i>1</i><str>ABC</str></JavaBean2XMLStreamReaderTestCase$MyBean>"));