@Test
public void testAssigningAndCallingFunctionThatCanBeUsedToAssignVariable() {

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