### Question:
SoapMessageManager { public Document wrapWithSoapEnvelope(Element element) { DocumentBuilder documentBuilder; try { documentBuilder = newDocumentBuilder(); } catch (ParserConfigurationException e) { LOG.error("*** ALERT: Failed to create a document builder when trying to construct the the soap message. ***", e); throw new RuntimeException(e); } Document document = documentBuilder.newDocument(); document.adoptNode(element); Element envelope = document.createElementNS("http: Element body = document.createElementNS("http: envelope.appendChild(body); body.appendChild(element); document.appendChild(envelope); return document; }  Document wrapWithSoapEnvelope(Element element); Element unwrapSoapMessage(Document document); Element unwrapSoapMessage(Element soapElement);  }### Answer:
@Test public void wrapWithSoapEnvelope_shouldWrapElementInsideSoapMessageBody() throws Exception { Element element = getTestElement(); SoapMessageManager manager = new SoapMessageManager(); Document soapMessage = manager.wrapWithSoapEnvelope(element); assertThat(getAttributeQuery(soapMessage)).isNotNull(); }