@Test
public void onRpc() throws Exception {

    Document reqDoc = DocumentUtils.stringToDocument("<rpc/>");
    NetconfRpcRequest req = new NetconfRpcRequest();
    NetconfRpcResponse resp = new NetconfRpcResponse();
    req.setRpcInput(reqDoc.getDocumentElement());
    listener.onRpc(client, req, resp);
    assertTrue(resp.isOk());
}