cmds.add( CommandFactory.newInsertObject( cheddar2 ) );
cmds.add( CommandFactory.newInsertObject( cheddar3 ) );
cmds.add( CommandFactory.newQuery( "cheeses", "cheeses" ) );
BatchExecutionResults batchResult = ksession.execute( CommandFactory.newBatchExecution( cmds ) );
org.drools.runtime.rule.QueryResults results = ( org.drools.runtime.rule.QueryResults) batchResult.getValue( "cheeses" );
assertEquals( 3, results.size() );
assertEquals( 2, results.getIdentifiers().length );
Set newSet = new HashSet();
for ( org.drools.runtime.rule.QueryResultsRow result : results ) {
list = new ArrayList();