@Test
public void separateVariableNames() throws Exception {

    TemplateModel m = new TemplateModel();
    m.name = "t1";
    m.lhs = new IPattern[1];
    FactPattern factPattern = new FactPattern();
    m.lhs[0] = factPattern;
    factPattern.addConstraint(makeConstraint("Applicant", "age", "Integer", "$default", "=="));
    factPattern.addConstraint(makeConstraint("Applicant", "name", "String", "$other", "=="));
    assertEquals(2, m.getInterpolationVariablesList().length);
    assertEquals("Integer", m.getInterpolationVariablesList()[0].getDataType());
    assertEquals("String", m.getInterpolationVariablesList()[1].getDataType());
}