String foo = BeanUtil.getProperty(lifeBean, "foo").toString();
assertEquals("foo", foo);
JoddIntrospector.introspector = new CachingIntrospector(true, true, true, new String[] {"_", ""});
foo = BeanUtil.getProperty(lifeBean, "foo").toString();
assertEquals("foo", foo);
ClassDescriptor cd = JoddIntrospector.introspector.lookup(LifeBean.class);
PropertyDescriptor[] pds = cd.getAllPropertyDescriptors();
assertEquals(3, pds.length);
assertEquals("bar", pds[0].getName());
assertEquals("_bar", pds[0].getFieldDescriptor().getName());
assertEquals("www", pds[2].getName());
assertEquals("www", pds[2].getFieldDescriptor().getName());
JoddIntrospector.introspector = new CachingIntrospector();
}