@Test
public void testEvalJsonEmbeddedExpressions() {

    ScenarioContext ctx = getContext();
    ctx.vars.put("a", 1);
    ctx.vars.put("b", 2);
    DocumentContext doc = JsonUtils.toJsonDoc("{ foo: '#(a + b)' }");
    Script.evalJsonEmbeddedExpressions(doc, ctx);
    ctx.vars.put("myJson", doc);
    ScriptValue value = Script.evalJsonPathOnVarByName("myJson", "$.foo", ctx);
    assertEquals(ScriptValue.Type.PRIMITIVE, value.getType());
    assertEquals(3.0, value.getValue());
}