private ArrayList<String> messagePathList;
@Test
public void processDiscount() throws ObjectMappingException, ConfigurationException, RegistryException, MessageRouterException, ActionProcessingException
{
Message message = createMessageWithOrder( order );
ConfigTree configTree = new CBRConfigTreeBuilder( true ).ruleFile( "JBossESBPricingRulesStateful.drl" ).messagePaths(messagePathList).build();
BusinessRulesProcessor processor = new BusinessRulesProcessor( configTree );
processor.process( message );
assertEquals( 20.0, order.getDiscount(), 0);
assertEquals( "20%" ,message.getBody().get("DiscountObject"));
}