XMLStreamReader soap11Parser = StAXUtils.createXMLStreamReader(
AbstractTestCase.getTestResource("soap/" + spec.getName() + "/" + MESSAGE), null);
QName qname = new QName(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAP11Constants.BODY_FAULT_LOCAL_NAME, "SOAP-ENV");
XMLStreamReaderWithQName parser = new XMLStreamReaderWithQName(soap11Parser, qname);
SOAPModelBuilder soap11Builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(metaFactory, parser);
SOAPEnvelope env = soap11Builder.getSOAPEnvelope();
assertTrue(env.hasFault());
assertTrue(!parser.isReadBody());
// Get the name of the first element in the body
String localName = env.getSOAPBodyFirstElementLocalName();
assertTrue(localName.equals("Fault"));
assertTrue(!parser.isReadBody());
parser.close();
}