public void testExists() throws Exception {
PackageBuilder builder = new PackageBuilder();
// Make sure we can't accessa variable bound inside the not node
Rule rule = createRule( new ExistsDescr(),
builder,
"update(stilton);" );
assertEquals( 1,
builder.getErrors().getErrors().length );
builder = new PackageBuilder();
rule = createRule( new ExistsDescr(),
builder,
"" );
assertEquals( 0,
builder.getErrors().getErrors().length );