// AgendaGroup "group1" is not active, so should receive activation
final Cheese brie12 = new Cheese( "brie", 12 );
workingMemory.insert( brie12 );
DefaultAgenda agenda = (DefaultAgenda) workingMemory.getAgenda();
final AgendaGroup group1 = agenda.getAgendaGroup( "group1" );
assertEquals( 1, group1.size() );
workingMemory.setFocus( "group1" );
// AgendaqGroup "group1" is now active, so should not receive
// activations
final Cheese brie10 = new Cheese( "brie", 10 );
workingMemory.insert( brie10 );
assertEquals( 1, group1.size() );
final Cheese cheddar20 = new Cheese( "cheddar", 20 );
workingMemory.insert( cheddar20 );
final AgendaGroup group2 = agenda.getAgendaGroup( "group1" );
assertEquals( 1, group2.size() );
final RuleFlowGroupImpl rfg = (RuleFlowGroupImpl) agenda.getRuleFlowGroup( "ruleflow2" );
rfg.setActive( true );
final Cheese cheddar17 = new Cheese( "cheddar", 17 );
workingMemory.insert( cheddar17 );
assertEquals( 1, group2.size() );
}