/**
* Verifies heuristic processing can be called priot to an extension
* annotation processors being called.
*/
public void testBarAnnotationProcessedFirst() throws Exception {
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
Constructor<Foo> ctor = Foo.class.getConstructor(String.class, String.class);
JavaConstructorImpl<Foo> definition = new JavaConstructorImpl<Foo>(ctor);
type.setConstructor(definition);
Property property = factory.createProperty();
property.setName("myBar");
definition.getParameters()[0].setName("myBar");
type.getProperties().add(property);
visitEnd(Foo.class, type);
assertEquals(2, type.getProperties().size());
}