### Question:
SDNCServiceRequestConnector extends SDNCConnector { public SDNCResponseCommon parseResponseContent(String responseContent) throws ParseException, ParserConfigurationException, SAXException, IOException { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); documentBuilderFactory.setFeature("http: documentBuilderFactory.setFeature("http: InputSource source = new InputSource(new StringReader(responseContent)); Document doc = documentBuilderFactory.newDocumentBuilder().parse(source); Element root = doc.getDocumentElement(); Element configurationResponseCommon = null; for (Element child : SDNCAdapterUtils.childElements(root)) { if ("configuration-response-common".equals(child.getNodeName())) { configurationResponseCommon = child; break; } } if (configurationResponseCommon == null) { throw new ParseException("No configuration-response-common element in SDNC response", 0); } String responseCode = null; String responseMessage = null; String svcRequestId = null; String ackFinalIndicator = null; List<Element> responseParameters = new ArrayList<>(); for (Element child : SDNCAdapterUtils.childElements(configurationResponseCommon)) { switch (child.getNodeName()) { case "response-code": responseCode = child.getTextContent(); break; case "response-message": responseMessage = child.getTextContent(); break; case "svc-request-id": svcRequestId = child.getTextContent(); break; case "ack-final-indicator": ackFinalIndicator = child.getTextContent(); break; case "response-parameters": responseParameters.add(child); break; default: } } if (svcRequestId == null || svcRequestId.isEmpty()) { throw new ParseException("No svc-request-id in SDNC response", 0); } if (responseCode == null || responseCode.isEmpty()) { throw new ParseException("No response-code in SDNC response", 0); } if (ackFinalIndicator == null || ackFinalIndicator.trim().isEmpty()) { ackFinalIndicator = "Y"; } if (!"Y".equals(ackFinalIndicator) && !"N".equals(ackFinalIndicator)) { throw new ParseException("Invalid ack-final-indicator in SDNC response: '" + ackFinalIndicator + "'", 0); } if (responseMessage != null && responseMessage.isEmpty()) { responseMessage = null; } if (!responseCode.matches("2[0-9][0-9]") && !("0").equals(responseCode)) { return new SDNCServiceError(svcRequestId, responseCode, responseMessage, ackFinalIndicator); } return createSDNCServiceResponse(responseCode, responseMessage, svcRequestId, ackFinalIndicator, responseParameters); }  SDNCResponseCommon parseResponseContent(String responseContent);  }### Answer:
@Test public void parseResponseContentTest() throws Exception { String content = FileUtil.readResourceFile("SdncServiceResponse.xml"); SDNCServiceRequestConnector sdncServiceRequestConnector = new SDNCServiceRequestConnector(); SDNCResponseCommon responseCommon = sdncServiceRequestConnector.parseResponseContent(content); assertNotNull(responseCommon); }