private RuleImpl createRule( final ConditionalElementDescr ceDescr,
final KnowledgeBuilderImpl builder,
final String consequence ) throws Exception {
final PackageDescr packageDescr = new PackageDescr( "p1" );
final RuleDescr ruleDescr = new RuleDescr( "rule-1" );
packageDescr.addRule( ruleDescr );
final AndDescr lhs = new AndDescr();
ruleDescr.setLhs( lhs );
lhs.addDescr( (BaseDescr) ceDescr );