}
}
public void testNestedAttributeGroup(){
TestNestedAttributeGroupElement testNestedAttributeGroupElement = new TestNestedAttributeGroupElement();
testNestedAttributeGroupElement.setAttribute1("Attribute1");
testNestedAttributeGroupElement.setAttribute2("Attribute2");
testNestedAttributeGroupElement.setParam1("Param1");
try {
OMElement omElement =
testNestedAttributeGroupElement.getOMElement(TestNestedAttributeGroupElement.MY_QNAME,OMAbstractFactory.getOMFactory());
String omElementString = omElement.toStringWithConsume();
System.out.println("OM Element ==> " + omElementString);
XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(omElementString.getBytes()));
TestNestedAttributeGroupElement result = TestNestedAttributeGroupElement.Factory.parse(xmlReader);
assertEquals(result.getParam1(),"Param1");
assertEquals(result.getAttribute1(),"Attribute1");
assertEquals(result.getAttribute2(),"Attribute2");
} catch (XMLStreamException e) {
fail();
} catch (Exception e) {
fail();
}