*/
public void testAutowireBuild() throws Exception {
PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>> type =
new PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>>();
type.setImplementationScope(Scope.MODULE);
JavaMappedReference mappedReference = new JavaMappedReference();
mappedReference.setName("ref");
mappedReference.setAutowire(true);
Method refMethod = FooImpl.class.getMethod("setRef", Foo.class);
refMethod.setAccessible(true);
mappedReference.setMember(refMethod);
ServiceContract contract = new JavaServiceContract(Foo.class);
mappedReference.setServiceContract(contract);
type.add(mappedReference);
ConstructorDefinition<FooImpl> ctorDef = new ConstructorDefinition<FooImpl>(FooImpl.class.getConstructor());
type.setConstructorDefinition(ctorDef);
SystemImplementation impl = new SystemImplementation();
impl.setComponentType(type);