}
}
@Test
public void testVariableAccessDefinedVariable() {
NotNullConstraint c = new NotNullConstraint();
c.setApplyTo(Arrays.asList(new String[] { "$a1" }));
VariableSpace scope = new VariableSpace();
scope.setVariable("a1", "aaa");
Record r = new RecordImpl();
c.check(r, scope);
CheckResult res = c.check(r, scope);
Assert.assertTrue(res.isPassed());
}