@Test
public void testRpcAsOutput() throws Exception {

    XmlElement makeToastRpc = XmlElement.fromString(loadResourceAsString("make-toast-input_rev.xml"));
    XmlElement rpcAsOutput =
            ConverterUtils.rpcAsOutput(makeToastRpc, "http://netconfcentral.org/ns/toaster?revision=2009-11-20");
    Assert.assertNotNull(rpcAsOutput);
    Assert.assertTrue(rpcAsOutput.getName().equals("output"));
    rpcAsOutput = ConverterUtils.rpcAsOutput(makeToastRpc);
    Assert.assertNotNull(rpcAsOutput);
    Assert.assertTrue(rpcAsOutput.getName().equals("output"));
}