private class MyInterceptor implements MethodInterceptor {
public Object intercept(Object obj, Method method, Object[] args,
MethodProxy superProxy) throws Throwable {
Invocation invocation = new Invocation(proxy, method, args);
try {
return mockInvocation(invocation);
} catch (DynamicMockError e) {
if (!isProxyConstructed())
return superProxy.invokeSuper(obj, args);