newTestBean.setSimpleProperty("NewValue");
TestPropertyChangeListener testPCL = new TestPropertyChangeListener(ValueModel.VALUE_PROPERTY);
fm.getFormObjectHolder().addValueChangeListener(testPCL);
fm.setFormObject(newTestBean);
assertEquals(1, testPCL.eventCount());
assertEquals(testBean, testPCL.lastEvent().getOldValue());
assertEquals(newTestBean, testPCL.lastEvent().getNewValue());
}
public static class TestCommitListener implements CommitListener {
int preEditCalls;