configuration.setInstanceFactory(new PojoObjectFactory<SourceImpl>(SourceImpl.class.getConstructor()));
SystemAtomicComponent sourceContext = new SystemAtomicComponentImpl("source", configuration);
QualifiedName qName = new QualifiedName("service");
OutboundWire outboundWire = new SystemOutboundWireImpl("setTarget", qName, Target.class);
outboundWire.setTargetWire(inboundWire);
sourceContext.addOutboundWire(outboundWire);
sourceContext.start();
assertSame(((Source) sourceContext.getServiceInstance()).getTarget(), target);
// wires should pass back direct ref
EasyMock.verify(inboundWire);
}