@Test
public void getOriginalMessageTest() throws Exception {

    String request =
            "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
            "<rpc message-id=\"10101\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n" +
            "<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n" +
            "  <source>\n" +
            "    <running/>\n" +
            "  </source>\n" +
            "  <filter type=\"subtree\">\n" +
            "    <managed-devices xmlns=\"urn:bbf:yang:obbaa:network-manager\">\n" +
            "      <device/>\n" +
            "    </managed-devices>\n" +
            "  </filter>\n" +
            "</get-config>\n" +
            "</rpc>\n";
    NetconfRpcMessage netconfRpcMessage = new NetconfRpcMessage(request);
    assertEquals(request, netconfRpcMessage.getOriginalMessage());
}