props.setProperty( "file",
path );
// Check a default value for the RuleBase's RuleBaseConfiguration
RuleAgent agent = RuleAgent.newRuleAgent( props );
RuleBaseConfiguration conf = ((InternalRuleBase) agent.getRuleBase()).getConfiguration();
assertEquals( false,
conf.isSequential() );
// Pass in a RuleBaseConfiguration and make sure the RuleBase was created with it
conf = new RuleBaseConfiguration();
conf.setSequential( true );
agent = RuleAgent.newRuleAgent( props,
conf );
conf = ((InternalRuleBase) agent.getRuleBase()).getConfiguration();
assertEquals( true,
conf.isSequential() );
}