assertEquals(Multiplicity.ONE_ONE, reference.getMultiplicity());
assertEquals("myRef", reference.getName());
}
public void testTwoReferencesSameType() throws Exception {
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
Constructor<Foo> ctor = Foo.class.getConstructor(String.class, String.class);
visitConstructor(ctor, type);
assertNotNull(getReference(type, "myRef1"));
assertNotNull(getReference(type, "myRef2"));
}