@Test
public void testArrayItem() {

	int[] a = new int[]{1,2,3,4,5};
	
	Map<String, Object> m = new HashMap<>();
	m.put("a", a);
	m.put("s", "str");
	
	Map<String, Object> vars = new HashMap<>();
	vars.put("a", a);
	vars.put("m", m);
	vars.put("index", 0);
	vars.put("p", "s");
	
	assertEquals(1, eval("a[0]",vars));
	assertEquals(1, eval("a[index]",vars));
	assertEquals(2, eval("a[index + 1]",vars));
	assertEquals(1, eval("m['a'][0]",vars));
	assertEquals("str", eval("m['s']",vars));
	assertEquals("str", eval("m[p]",vars));
}