f.setFilter(new MethodFilter() {
public boolean isHandled(Method m) {
return m.getName().startsWith("f");
}
});
Class c = f.createClass();
MethodHandler mi = new MethodHandler() {
public Object invoke(Object self, Method m, Method proceed,
Object[] args) throws Throwable {
testResult += args[0].toString();
return proceed.invoke(self, args); // execute the original method.