@Test
    public void failsWhenAllStatementIsMissingInput() {
        Document input = new Document(type, "id:scheme:mytype::");
        input.setFieldValue(input.getField("in-1"), new StringFieldValue("69"));

        Expression exp = new ScriptExpression(
                new StatementExpression(new AttributeExpression("out-2")));
        try {
            exp.resolve(input);
            fail("Expected exception");
        } catch (VerificationException e) {
            assertEquals(AttributeExpression.class, e.getExpressionType());
            assertEquals("Invalid expression 'attribute out-2': Expected string input, but no input is provided", e.getMessage());
        }
    }
@author Simon Thoresen Hult
@author bratseth
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/ScriptTestCase.java