}
@Test
public void testConfiguration() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/drools/container/spring/session-conf-beans.xml");
KnowledgeBaseImpl kbase1 = (KnowledgeBaseImpl) context.getBean( "kbase1" );
RuleBaseConfiguration rconf = kbase1.getConfiguration();
assertTrue( rconf.isAdvancedProcessRuleIntegration() );
assertFalse( rconf.isMultithreadEvaluation() );
assertEquals( EventProcessingOption.STREAM,
rconf.getEventProcessingMode() );
assertEquals( AssertBehaviour.IDENTITY,
rconf.getAssertBehaviour() );
assertEquals( "org.drools.container.spring.MockConsequenceExceptionHandler",
rconf.getConsequenceExceptionHandler() );
KnowledgeBaseImpl kbase2 = (KnowledgeBaseImpl) context.getBean( "kbase2" );
rconf = kbase2.getConfiguration();
assertFalse( rconf.isAdvancedProcessRuleIntegration() );
assertFalse( rconf.isMultithreadEvaluation() );
assertEquals( 3,
rconf.getMaxThreads() );
assertEquals( EventProcessingOption.CLOUD,