DynaProperty[] dynaProperties = {
new DynaProperty("alpha", Integer.class),
new DynaProperty("beta", String.class)};
BasicDynaClass dynaClass = new BasicDynaClass("ADynaBean", BasicDynaBean.class,
dynaProperties);
DynaBean dynaBean = dynaClass.newInstance();
Context context = new Context();
context.setBean(dynaBean);
DynaBeanUpdater dynaBeanUpdater = new DynaBeanUpdater("beta", String.class);
dynaBeanUpdater.update(context, "Zenith Lives");
assertEquals("Expected dyna property set", "Zenith Lives", dynaBean.get("beta"));
}