}
public void testMultilevelSitemapVariables() throws PatternException {
String expr = "from {../1} to {1}";
InvokeContext context = new InvokeContext(true);
context.enableLogging(getLogger());
Map sitemapElements;
sitemapElements = new HashMap();
sitemapElements.put("1", "juliet");
context.pushMap("label1", sitemapElements);
sitemapElements = new HashMap();
sitemapElements.put("1", "oscar");
context.pushMap("label2", sitemapElements);
PreparedVariableResolver resolver = new PreparedVariableResolver(expr, getManager());
assertEquals("from juliet to oscar", resolver.resolve(context, getObjectModel()));
}