/**
* Verifies property and reference setters are computed
*/
public void testPropertyReference() throws Exception {
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
Constructor<SingleInterfaceWithPropertyReferenceImpl> ctor = SingleInterfaceWithPropertyReferenceImpl.class
.getConstructor();
type.setConstructor(new JavaConstructorImpl<SingleInterfaceWithPropertyReferenceImpl>(ctor));
processor.visitEnd(SingleInterfaceWithPropertyReferenceImpl.class, type);
assertEquals(1, type.getServices().size());
assertTrue(ModelHelper
.matches(ModelHelper.getService(type, Interface1.class.getSimpleName()), Interface1.class));
assertEquals(1, type.getProperties().size());
org.apache.tuscany.sca.assembly.Property prop = ModelHelper.getProperty(type, "property");
assertNotNull(prop);
assertEquals(ComplexProperty.class, type.getPropertyMembers().get("property").getType());
assertEquals(1, type.getReferences().size());
assertTrue(ModelHelper.matches(ModelHelper.getReference(type, "reference"), Ref.class));
}