public void testAddChild() throws Exception {
SOAPConstants sc = SOAPConstants.SOAP11_CONSTANTS;
EnvelopeBuilder eb = new EnvelopeBuilder(Message.REQUEST, sc);
DeserializationContext dc = new DeserializationContextImpl(null,
eb);
MessageElement parent = new MessageElement("parent.names",
"parent",
"parns",
null,
dc);
Name c1 = new PrefixedQName("child1.names", "child1" ,"c1ns");
SOAPElement child1 = parent.addChildElement(c1);
SOAPElement child2 = parent.addChildElement("child2");
SOAPElement child3 = parent.addChildElement("child3.names", "parns");
SOAPElement child4 = parent.addChildElement("child4",
"c4ns",
"child4.names");
SOAPElement child5 = new MessageElement("ns", "child5");
parent.addChildElement(child5);
SOAPElement c[] = {child1, child2, child3, child4, child5};
Iterator children = parent.getChildElements();
for (int i = 0; i < 5; i++) {