final RuleBase ruleBase = getRuleBase();
ruleBase.addPackage( pkg1 );
final WorkingMemory workingMemory = ruleBase.newStatefulSession();
// Adding person with null name and likes attributes
final PersonInterface bob = new Person( (String) null,
(String) null );
bob.setStatus( "P1" );
final PersonInterface pete = new Person( (String) null,
(String) null );
bob.setStatus( "P2" );
workingMemory.insert( bob );
workingMemory.insert( pete );
workingMemory.fireAllRules();
Assert.assertEquals( "Indexing with null values is not working correctly.",
"OK",
bob.getStatus() );
Assert.assertEquals( "Indexing with null values is not working correctly.",
"OK",
pete.getStatus() );
}