assertEquals(property.getConfigVariables(), expected);
}
@Test
public void testAddVariables() {
property.addVariable(new Variable("var3", "var3", true, Variable.VarType.CONFIG));
List<Variable> configVars = new ArrayList<Variable>(3);
configVars.add(new Variable("var3", "var3-overridden", false, Variable.VarType.CONFIG));
configVars.add(new Variable("var1", "var1", false, Variable.VarType.CONFIG));
configVars.add(new Variable("var2", "var2-unredefinable", false, Variable.VarType.CONFIG));
property.addVariables(configVars);
property.addVariable(new Variable("var2", "var2", false, Variable.VarType.CONFIG));
property.addVariable(new Variable("var4", "var4", true, Variable.VarType.TEMPLATE));
List<Variable> templateVars = new ArrayList<Variable>(3);
templateVars.add(new Variable("var4", "var4-overridden", false, Variable.VarType.TEMPLATE));
templateVars.add(new Variable("var6", "var6", false, Variable.VarType.TEMPLATE));
templateVars.add(new Variable("var5", "var5-unredefinable", false, Variable.VarType.TEMPLATE));
property.addVariables(templateVars);
property.addVariable(new Variable("var5", "var5", false, Variable.VarType.TEMPLATE));
assertEquals(property.getConfigVariables(), configVars);
assertEquals(property.getTemplateVariables(), templateVars);
}