public void testSingleConstructorWithRef() throws Exception {
PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>> type =
new PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>>();
JavaMappedReference ref = new JavaMappedReference();
ref.setName("foo");
ServiceContract contract = new JavaServiceContract(String.class);
ref.setServiceContract(contract);
type.getReferences().put("foo", ref);
processor.visitEnd(null, Foo1.class, type, null);
assertNotNull(type.getConstructorDefinition().getConstructor());
assertEquals("foo", type.getConstructorDefinition().getInjectionNames().get(0));