// connect the source to the target
DefaultWireBuilder builder = new DefaultWireBuilder();
// no need for scopes since we use a static invoker
builder.connect(sourceFactory, targetFactory, null, true, null);
target.build();
// set a static invoker
MockStaticInvoker invoker = new MockStaticInvoker(hello, new SimpleTargetImpl());
source.setTargetInvoker(invoker);
Message msg = msgFactory.createMessage();