160161162163164165166167168169170
String actual = DOMWriter.printNode(soapMsg.getSOAPPart().getEnvelope(), true); assertEquals(expected, actual); } finally { sec.cleanup(); } } // WS-Security leaves wsu:id attributes around on elements which are not // cleaned