field.setAccessible(true);
Object mockito = Mockito.mock(field.getType(), field.getName());
try
{
//InvocationHandler handler = new MockIBeanHandler(field.getType(), muleContext, mockito);
InvocationHandler handler = new MockIntegrationBeanInvocationHandler(field.getType(), plugin, mockito);
Object mock = Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{field.getType(), MockIBean.class}, handler);
field.set(object, mock);
}