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