@Test
public void testEvalPrimitives() {

    ScenarioContext ctx = getContext();
    ctx.vars.put("foo", "bar");
    ctx.vars.put("a", 1);
    ctx.vars.put("b", 2);
    String expression = "foo + 'baz'";
    ScriptValue value = Script.evalJsExpression(expression, ctx);
    assertEquals(ScriptValue.Type.STRING, value.getType());
    assertEquals("barbaz", value.getValue());
    value = Script.evalJsExpression("a + b", ctx);
    assertEquals(ScriptValue.Type.PRIMITIVE, value.getType());
    assertEquals(3.0, value.getValue());
}