@Test
public void testFormulaFieldBinding() throws Exception {

    final ConditionCol52 ageEqualToFormulaCondition = new ConditionCol52();
    ageEqualToFormulaCondition.setConstraintValueType(BaseSingleFieldConstraint.TYPE_RET_VALUE);
    ageEqualToFormulaCondition.setHeader("age equals to");
    ageEqualToFormulaCondition.setFactField("age");
    ageEqualToFormulaCondition.setOperator("==");
    ageEqualToFormulaCondition.setBinding("$age");
    pattern.setChildColumns(Arrays.asList(ageEqualToFormulaCondition));
    model.setConditionPatterns(Arrays.asList(pattern));
    addRow(1, "1 + 1");
    model.setData(data);
    final String source = service.getSource(path, model);
    assertTrue(source.contains("$p : Person( $age : age == ( 1 + 1 ) )"));
}