" System.out.println(\"we are done with exitPoints\");\n ";
setupTest( consequence, new HashMap<String, Object>() );
try {
JavaExprAnalyzer analyzer = new JavaExprAnalyzer();
JavaAnalysisResult analysis = (JavaAnalysisResult) analyzer.analyzeBlock( (String) ruleDescr.getConsequence(),
new BoundIdentifiers( new HashMap<String, Class<?>>(), new HashMap<String, Class<?>>() ) );
String fixed = builder.fixBlockDescr( context,
(String) ruleDescr.getConsequence(),
analysis.getBlockDescrs().getJavaBlockDescrs(),
new BoundIdentifiers( new HashMap(), new HashMap() ),
new HashMap<String,Declaration>() );
String expected = " System.out.println(\"this is a test\");\n " +
" drools.getExitPoint(\"foo\").insert( new Cheese() );\n " +
" System.out.println(\"we are done with exitPoints\");\n ";