@Test
public void testRpcAsInput() throws Exception {

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