public static NetconfRpcReply parseRpcReply(CharSequence xml) {
        XMLInputFactory xif = XMLInputFactory.newFactory();
        try {
            XMLStreamReader xsr = xif.createXMLStreamReader(CharSource.wrap(xml).openStream());
            return parseRpcReply(xsr);
        } catch (XMLStreamException | IOException e) {
            log.error("Exception thrown creating XMLStreamReader", e);
            return null;
        }
    }
@Test
    public void testGetResponseParse() {
        NetconfRpcReply rep = NetconfRpcParserUtil.parseRpcReply(RESPONSE_DATA1);
        assertThat(rep.isOk(), is(false));
        assertThat(rep.messageId(), is("5"));

        assertThat(rep.responses(), hasSize(1));
        assertThat(rep.responses().get(0),
                   is(both(startsWith("<data")).and(endsWith("</data>"))));
        // Can't do below: response contains xmlns attribute for netconf base
        //assertThat(rep.responses().get(0), is(RESPONSE_BODY1));
    }