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 testOkParse() {
        NetconfRpcReply ok = NetconfRpcParserUtil.parseRpcReply(OK_DATA1);
        assertThat(ok.isOk(), is(true));
        assertThat(ok.messageId(), is("3"));
    }