TargetInvocationConfiguration source = new TargetInvocationConfiguration(hello);
MockSyncInterceptor sourceInterceptor = new MockSyncInterceptor();
source.addInterceptor(sourceInterceptor);
source.addInterceptor(new InvokerInterceptor());
source.setTargetInvoker(new MockStaticInvoker(hello, new SimpleTargetImpl()));
source.build();
Map<Method, TargetInvocationConfiguration> configs = new MethodHashMap<TargetInvocationConfiguration>();
configs.put(hello, source);
WireTargetConfiguration config = new WireTargetConfiguration(new QualifiedName("foo"), configs, Thread.currentThread()
.getContextClassLoader(), new MessageFactoryImpl());
JDKTargetWireFactory factory = new JDKTargetWireFactory();