new MockWorkingMemory() );
Cheesery listChesse = new Cheesery();
listChesse.setTotalAmount( 1000 );
runner.getPopulatedData().put( "cheese",
listChesse );
Maturity m = new Maturity( "veryYoung" );
runner.getPopulatedData().put( "m",
m );
CallMethod mCall = new CallMethod();
mCall.setVariable( "cheese" );
mCall.setMethodName( "setAgeToMaturity" );
CallFieldValue field = new CallFieldValue();
field.value = "=m";
mCall.addFieldValue( field );
CallFieldValue field2 = new CallFieldValue();
field2.value = "veryold";
mCall.addFieldValue( field2 );
runner.executeMethodOnObject( mCall,
listChesse );
assertTrue( m.getAge().equals( "veryold" ) );
}