XmlBeanUtils.addChildElement( m_propsDoc, xBean );
XmlObject[] childElems = XmlBeanUtils.getChildElements( m_propsDoc, elemName );
assertEquals( 2, childElems.length );
assertTrue( childElems[1] instanceof XmlString );
// now test adding to a childless element...
EndpointReferenceDocument eprDoc = EndpointReferenceDocument.Factory.newInstance();
EndpointReferenceType epr = eprDoc.addNewEndpointReference();
ReferencePropertiesType refPropsType = epr.addNewReferenceProperties();
XmlBeanUtils.addChildElement( refPropsType, xBean );
childElems = XmlBeanUtils.getChildElements( refPropsType, elemName );
assertEquals( 1, childElems.length );
assertTrue( childElems[0] instanceof XmlString );