@Test
public void testAssigningAndCallingFunctionWithArgumentsThatCanBeUsedToAssignVariable() {

    ScenarioContext ctx = getContext();
    Script.assign("foo", "function(pre){ return pre + ' world' }", ctx);
    Script.assign("hello", "call foo 'hello'", ctx);
    ScriptValue hello = ctx.vars.get("hello");
    assertEquals("hello world", hello.getValue());
}