}
@Test
public void test_Validate_VariableExpression_NotOk() {
PuppetManifest pp = pf.createPuppetManifest();
VariableExpression v = pf.createVariableExpression();
pp.getStatements().add(v);
// name is null
tester.validate(v).assertError(IPPDiagnostics.ISSUE__NOT_VARNAME);
v.setVarName("");
tester.validate(v).assertError(IPPDiagnostics.ISSUE__NOT_VARNAME);
v.setVarName("x");
tester.validate(v).assertError(IPPDiagnostics.ISSUE__NOT_VARNAME);
// period is allowed in names, but not in variables
v.setVarName("$3.4");
tester.validate(v).assertError(IPPDiagnostics.ISSUE__NOT_VARNAME);
}