@Test
public void testEvalXmlEmbeddedExpressions() {

    ScenarioContext ctx = getContext();
    ctx.vars.put("a", 1);
    ctx.vars.put("b", 2);
    Document doc = XmlUtils.toXmlDoc("<root><foo>#(a + b)</foo></root>");
    Script.evalXmlEmbeddedExpressions(doc, ctx);
    ctx.vars.put("myXml", doc);
    ScriptValue value = Script.evalXmlPathOnVarByName("myXml", "/root/foo", ctx);
    assertEquals(ScriptValue.Type.STRING, value.getType());
    assertEquals("3.0", value.getAsString());
}