SOAPMessage message = mf.createMessage(null, new ByteArrayInputStream(ERRORNOUS_XML.getBytes()));
message.setProperty("isRequired", true);
SOAPAddressingPropertiesImpl props = new SOAPAddressingPropertiesImpl();
try
{
props.readHeaders(message);
fail("ERRORNOUS_XML should cause a parsing exception due to missing wsa:Action value");
}
catch (AddressingException e)
{
// expected an exception