configuration.addConstructorParamName("foo");
configuration.addConstructorParamName("ref");
SystemAtomicComponentImpl component = new SystemAtomicComponentImpl("foo", configuration);
component.addPropertyFactory("foo", new SingletonObjectFactory<String>("baz"));
Foo target = new Foo();
SystemOutboundWire wire = EasyMock.createMock(SystemOutboundWire.class);
EasyMock.expect(wire.getTargetService()).andReturn(target);
EasyMock.expect(wire.getReferenceName()).andReturn("ref").anyTimes();
EasyMock.replay(wire);
component.addOutboundWire(wire);
Bar bar = (Bar) component.createInstance();
assertEquals("baz", bar.foo);
assertEquals(target, bar.ref);