ClientProxyFactoryBean proxyFactory = new ClientProxyFactoryBean();
ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();
clientBean.setAddress(ROUTER_ADDRESS);
clientBean.setServiceClass(HelloService.class);
clientBean.setBus(bus);
HelloService client = (HelloService) proxyFactory.create();
int count = client.getInvocationCount();
client.ping();
//oneway ping invoked, so invocationCount ++
assertEquals("The ping should be invocated", client.getInvocationCount(), ++count);
}