* mapper is set.
*/
public void testCreateDescriptorWithHyphenatedElementNameMapper() throws Exception {
XMLIntrospector introspector = new XMLIntrospector();
introspector.getConfiguration().setAttributesForPrimitives(false);
introspector.getConfiguration().setElementNameMapper(new HyphenatedNameMapper());
BeanInfo beanInfo = Introspector.getBeanInfo(CustomerBean.class);
NodeDescriptor nickNameProperty = createDescriptor("nickName", beanInfo, introspector);
assertNotNull("nickName property not found", nickNameProperty);
assertEquals("nick name property", "nick-name", nickNameProperty.getLocalName());