public void testVisitConstructor() throws Exception {
Constructor<Foo> ctor = Foo.class.getConstructor(String.class);
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
JavaConstructorImpl<Foo> def = new JavaConstructorImpl<Foo>(ctor);
JavaParameterImpl parameter = def.getParameters()[0];
extension.visitConstructorParameter(parameter, type);
assertEquals("test", def.getParameters()[0].getName());
assertNotNull(getProperty(type, "test"));
}