ElementDescriptor animalDescriptor = animalsDescriptor.getElementDescriptors()[0];
assertEquals("Use bind time type", true, animalDescriptor.isUseBindTimeTypeForMapping());
}
public void testIntrospectionTimeMappingDerivationStrategy() throws Exception {
XMLIntrospector xmlIntrospector = new XMLIntrospector();
xmlIntrospector.getConfiguration().setMappingDerivationStrategy(MappingDerivationStrategy.USE_INTROSPECTION_TIME_TYPE);
XMLBeanInfo xmlBeanInfo = xmlIntrospector.introspect(Animals.class);
ElementDescriptor animalsDescriptor = xmlBeanInfo.getElementDescriptor();
assertEquals("Use introspection time type", false, animalsDescriptor.isUseBindTimeTypeForMapping());
ElementDescriptor animalDescriptor = animalsDescriptor.getElementDescriptors()[0];
assertEquals("Use introspection time type", false, animalDescriptor.isUseBindTimeTypeForMapping());
}