/**
* Tests autowiring to a reference
*/
public void testReferenceAutowire() throws Exception {
CompositeComponent parent = new CompositeComponentImpl("parent", null, null, null);
parent.start();
Source refSource = new SourceImpl();
Reference reference = EasyMock.createMock(Reference.class);
EasyMock.expect(reference.getName()).andReturn("service").atLeastOnce();
EasyMock.expect(reference.getServiceInstance()).andReturn(refSource);
EasyMock.expect(reference.isSystem()).andReturn(false).atLeastOnce();