Iterator it = soapHeader.extractHeaderElements("BradPitt");
SOAPHeaderElement bar = (SOAPHeaderElement)it.next();
assertFalse(it.hasNext());
Name barName = new NameImpl("Bar", "ns2", "http://org.jboss.ws/header2");
assertEquals(barName, bar.getElementName());
assertEquals("SomeOtherValue", bar.getValue());
Iterator childElements = soapHeader.getChildElements();
SOAPHeaderElement foo = (SOAPHeaderElement)childElements.next();
Name fooName = new NameImpl("Foo", "ns1", "http://org.jboss.ws/header");
assertEquals(fooName, foo.getElementName());
assertFalse(childElements.hasNext());
}