@Test
    public void testToUri() {
        var tester = new ScriptTester();
        var expression = tester.expressionFrom("input myString | to_uri | attribute myUri");

        SimpleTestAdapter adapter = new SimpleTestAdapter();
        var myString = new Field("myString", DataType.STRING);
        adapter.createField(myString);
        adapter.setValue("myString", new StringFieldValue("https://vespa.ai"));
        adapter.createField(new Field("myUri", DataType.URI));

        expression.resolve(adapter);
        ExecutionContext context = new ExecutionContext(adapter);
        expression.execute(context);
        assertEquals(new UriFieldValue("https://vespa.ai"), adapter.values.get("myUri"));
    }
@author Simon Thoresen Hult
@author bratseth
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/ScriptTestCase.java