public class JTestTransferBean {
@Test
public void testBeanEncode() {
String parseResult;
try {
TestBean testSubSubBean = new TestBean();
testSubSubBean.setTestString("Test Sub Sub Bean");
testSubSubBean.setTestInt(5678);
TestBean testSubBean = new TestBean();
testSubBean.setTestString("Test Sub Bean");
testSubBean.setTestBean(testSubSubBean);
TestBean testBean = new TestBean();
testBean.setTestBean(testSubBean);
testBean.setTestInt(1234);
testBean.setTestString("Test");
Notation notation = NotationHelper.createXMLNotation();
OutputStream resultStream = new ByteArrayOutputStream();
notation.encode(testBean, resultStream);
parseResult = resultStream.toString();