@Test
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);" );
assertTrue( builder.hasErrors() );
builder = new PackageBuilder();
rule = createRule( new ExistsDescr(),
builder,
"" );
assertEquals( 0,
builder.getErrors().getErrors().length );