@Test
public void testArray() throws Exception {

    Condition condition = new Condition();
    condition.setExpression(new BinaryExpression(Operator.LESS_THAN, new ArrayFieldExpression(getVariable("arr"), 100),
                                                 getVariable("b")));
    GroovyExpression expr = new GroovyExpression(condition);
    Assert.assertEquals("arr[100] < b", expr.asString());
}