DuplicateRuleNameException,
RuleIntegrationException,
RuleSetIntegrationException
{
Rule rule1 = new Rule( "test-rule 1" );
rule1.addParameterDeclaration( "paramVar", new MockObjectType( true ) );
//add consequence
rule1.setConsequence( new org.drools.spi.InstrumentedConsequence( ) );
//add conditions
rule1.addCondition( new org.drools.spi.InstrumentedCondition( ) );
rule1.addCondition( new org.drools.spi.InstrumentedCondition( ) );
rule1.setSalience( 42 );
Rule rule2 = new Rule( "test-rule 2" );
rule2.addParameterDeclaration( "paramVar", new MockObjectType( true ) );
//add consequence
rule2.setConsequence( new org.drools.spi.InstrumentedConsequence( ) );
//add conditions