public void testSOAPFactory() {
try {
SOAPEnvelope soapEnvelope =
(SOAPEnvelope) new StAXSOAPModelBuilder(XMLInputFactory.newInstance().
createXMLStreamReader(new FileInputStream(SOAP11_FILE_NAME)), null)
.getDocumentElement();
assertTrue(soapEnvelope != null);
soapEnvelope = (SOAPEnvelope) new StAXSOAPModelBuilder(XMLInputFactory.newInstance().
createXMLStreamReader(new FileInputStream(SOAP12_FILE_NAME)), null)
.getDocumentElement();
assertTrue(soapEnvelope != null);
} catch (XMLStreamException e) {
fail("Can not load soap envelope. Exception = " + e);