@Test
public void testReplaceExistingVar() throws Exception {

    context.setLocalVar("x", new NodeVariable("old val"));
    context.replaceExistingVar("x", dummyVar);
    assertSame(context.getVar("x"), dummyVar);
}