ObjectName objectName = new ObjectName("speed:type=MockGBean");
kernel.loadGBean(objectName, mockGBean);
kernel.startGBean(objectName);
// reflect proxy
ProxyFactory vmProxyFactory = new VMProxyFactory(MyInterface.class);
ProxyMethodInterceptor vmMethodInterceptor = vmProxyFactory.getMethodInterceptor();
MyInterface vmProxy = (MyInterface) vmProxyFactory.create(vmMethodInterceptor);
vmMethodInterceptor.connect(kernel.getMBeanServer(), objectName);
iterations = 50000;
for (int i = 0; i < iterations; i++) {
result = vmProxy.echo(msg);
}