TargetInvocationConfiguration target = new TargetInvocationConfiguration(hello);
MockHandler targetRequestHandler = new MockHandler();
MockSyncInterceptor targetInterceptor = new MockSyncInterceptor();
target.addRequestHandler(targetRequestHandler);
target.addInterceptor(targetInterceptor);
target.addInterceptor(new InvokerInterceptor());
// connect the source to the target
source.setTargetRequestChannel(new MessageChannelImpl(target.getRequestHandlers()));
source.setTargetResponseChannel(new MessageChannelImpl(target.getResponseHandlers()));
source.build();