"<np:bear name='ted' zoo:species='ursus maritimus' xmlns:np='http://northpole.net' xmlns:zoo='http://zoofan.net'/>" +
"</soap:Body>" +
"</soap:Envelope>";
SOAPMessage soapMessage = MessageFactory.newInstance().createMessage(null, new ByteArrayInputStream(xml.getBytes()));
SOAPFactory soapFactory = SOAPFactory.newInstance();
SOAPElement bearElement = (SOAPElement)soapMessage.getSOAPBody().getChildElements().next();
assertEquals(2, getIteratorCount(bearElement.getAllAttributes()));
Iterator it = bearElement.getAllAttributes();
assertEquals(soapFactory.createName("name"), it.next());
assertEquals(soapFactory.createName("species", null, "http://zoofan.net"), it.next());
}