ConverterUtils { public static XmlElement rpcAsInput(final XmlElement inputXmlElement) { return rpcAsInput(inputXmlElement, ""); } private  ConverterUtils(); static Optional<RpcDefinition> loadRpc(final SchemaContext schemaContext, final QName rpcQName); static Optional<NotificationDefinition> loadNotification(final SchemaContext schemaContext,
            final QName notificationQname); static Optional<QName> getRpcQName(final XmlElement xmlElement); static Optional<QName> getRpcQName(final String inputString); static XmlElement rpcAsInput(final XmlElement inputXmlElement); static XmlElement rpcAsInput(final XmlElement inputXmlElement, final String namespace); static XmlElement rpcAsOutput(final XmlElement inputXmlElement); static XmlElement rpcAsOutput(final XmlElement inputXmlElement, final String namespace); static SchemaNode getSchemaNode(final SchemaContext schemaContext, final QName qname); static SchemaNode getSchemaNode(final SchemaContext schemaContext,
            final YangInstanceIdentifier yangInstanceIdentifier); static SchemaNode getSchemaNode(final SchemaContext schemaContext, final String namespace,
            final String revision, final String localName);  }
@Test public void testRpcAsInput() throws Exception { XmlElement makeToastRpc = XmlElement.fromString(loadResourceAsString("make-toast-input_rev.xml")); XmlElement rpcAsInput = ConverterUtils.rpcAsInput(makeToastRpc, "http: Assert.assertNotNull(rpcAsInput); Assert.assertTrue(rpcAsInput.getName().equals("input")); rpcAsInput = ConverterUtils.rpcAsInput(makeToastRpc); Assert.assertNotNull(rpcAsInput); Assert.assertTrue(rpcAsInput.getName().equals("input")); }