DynaClass dynaClass = createDynaClass();
DynaBean bean = dynaClass.newInstance();
bean.set("name", "testDynaBean");
PersistentField pf = new PersistentFieldDynaBeanImpl(String.class, "name");
String result = (String) pf.get(bean);
assertNotNull(result);
assertEquals("testDynaBean", result);
pf.set(bean, "XXXX");
result = (String) pf.get(bean);
assertNotNull(result);
assertEquals("XXXX", result);
}