@Test
public void testPathExpression() {

    String inputExpression = "[ 10, 15 ].size";
    BaseNode pathBase = parse( inputExpression );
    assertThat( pathBase, is( instanceOf( PathExpressionNode.class ) ) );
    assertThat( pathBase.getText(), is( inputExpression ) );
    PathExpressionNode pathExpr = (PathExpressionNode) pathBase;
    assertThat( pathExpr.getExpression(), is( instanceOf( ListNode.class ) ) );
    assertThat( pathExpr.getExpression().getText(), is( "10, 15" ) );
    assertThat( pathExpr.getName(), is( instanceOf( NameRefNode.class ) ) );
    assertThat( pathExpr.getName().getText(), is( "size" ) );
}