ConverterUtils { public static XmlElement rpcAsOutput(final XmlElement inputXmlElement) { return rpcAsOutput(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 testRpcAsOutput() throws Exception { XmlElement makeToastRpc = XmlElement.fromString(loadResourceAsString("make-toast-input_rev.xml")); XmlElement rpcAsOutput = ConverterUtils.rpcAsOutput(makeToastRpc, "http: Assert.assertNotNull(rpcAsOutput); Assert.assertTrue(rpcAsOutput.getName().equals("output")); rpcAsOutput = ConverterUtils.rpcAsOutput(makeToastRpc); Assert.assertNotNull(rpcAsOutput); Assert.assertTrue(rpcAsOutput.getName().equals("output")); }