{
ComplexData cd = new ComplexData("Foo", new Integer(13));
HttpInvokerProxyFactoryBean invoker = new HttpInvokerProxyFactoryBean();
invoker.setServiceInterface(WorkInterface.class);
invoker.setServiceUrl(SPRING_HTTP_ENDPOINT);
invoker.afterPropertiesSet();
WorkInterface worker = (WorkInterface)invoker.getObject();
ComplexData data = worker.executeComplexity(cd);
assertNotNull(data);
assertEquals(data.getSomeString(), "Foo Received");
assertEquals(data.getSomeInteger(), new Integer(14));