YangLibraryMessage extends NetconfRpcMessage { public YangLibrary getYangLibrary() { return yangLibrary; } YangLibraryMessage(String netconfMessage); String buildRpcReplyResponse(); YangLibrary getYangLibrary(); ModulesState getModulesState(); RpcOperationType getRpcOperationType();  }
@Test public void getYangLibrary() throws Exception { String request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<rpc xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\" message-id=\"1520261367256\">\n" + " <get>\n" + " <source>\n" + " <running />\n" + " </source>\n" + " <filter type=\"subtree\">\n" + " <yang-library xmlns=\"urn:ietf:params:xml:ns:yang:ietf-yang-library\">\n" + " </yang-library>\n" + " </filter>\n" + " </get>\n" + "</rpc>\n"; YangLibraryMessage yangLibraryMessage = new YangLibraryMessage(request); assertTrue(yangLibraryMessage.getYangLibrary() != null); assertTrue(yangLibraryMessage.getModulesState() == null); }