public void testExtendMethodAlterReturn() throws Exception
{
ClassFab cf = newClassFab("ExtendMethodAlterReturn", Object.class);
MethodFab mf = cf.addMethod(Modifier.PUBLIC, new MethodSignature(int.class, "getValue",
null, null), "return 2;");
mf.extend("$_ = 3 * $_;", false);
Object bean = cf.createClass().newInstance();