str += "end\n";
Cheese stilton = new Cheese( "stilton", 5 );
StatelessKnowledgeSession ksession = getSession2( ResourceFactory.newByteArrayResource( str.getBytes() ) );
GenericCommand cmd = ( GenericCommand ) CommandFactory.newInsert( stilton, "outStilton" );
BatchExecutionCommandImpl batch = new BatchExecutionCommandImpl( Arrays.asList( new GenericCommand<?>[] { cmd } ) );
ExecutionResults result = ( ExecutionResults ) ksession.execute( batch );
stilton = ( Cheese ) result.getValue( "outStilton" );
assertEquals( 30,