}
public void testIgnoreAllBeanInfo() throws Exception {
XMLIntrospector introspector = new XMLIntrospector();
introspector.getConfiguration().setIgnoreAllBeanInfo( false );
introspector.setRegistry(new NoCacheRegistry());
XMLBeanInfo info = introspector.introspect( BeanWithBeanInfoBean.class );
ElementDescriptor[] elementDescriptors = info.getElementDescriptor().getElementDescriptors();
// When BeanInfo is used the properties alpha and gamma will be found
if ("alpha".equals(elementDescriptors[0].getPropertyName())) {
assertEquals("Second element name", "gamma" , elementDescriptors[1].getPropertyName());