public void testCallMethodOnClassArgumentAndOnArgumentStandardOnFact() throws Exception {
HashMap<String, Object> populatedData = new HashMap<String, Object>();
MethodExecutor methodExecutor = new MethodExecutor( populatedData );
Cheesery listCheese = new Cheesery();
listCheese.setTotalAmount( 1000 );
populatedData.put( "cheese",
listCheese );
Cheesery.Maturity m = Cheesery.Maturity.YOUNG;
populatedData.put( "m",
m );
CallMethod mCall = new CallMethod();
mCall.setVariable( "cheese" );
mCall.setMethodName( "setMaturityAndStatus" );
CallFieldValue field = new CallFieldValue();
field.value = "=m";
mCall.addFieldValue( field );
CallFieldValue field2 = new CallFieldValue();
field2.value = "1";
mCall.addFieldValue( field2 );
methodExecutor.executeMethod( mCall );
assertEquals( m, listCheese.getMaturity() );
assertEquals( 1, listCheese.getStatus() );
}