java使用powermock修改字节码,对函数进行打桩。
class Callee { public String say(){ return "not replaced"; }}class Caller { private Callee callee = new Callee(); public String say() {return callee.say();}}