assertEquals(4, pcl.eventCount());
assertTrue(!m.isDirty());
}
public void testEnabledChange() {
FormModelMediatingValueModel vm = new FormModelMediatingValueModel(new ValueHolder("v1"));
DefaultFormModel fm = new DefaultFormModel(new Object());
DefaultFieldMetadata m = new DefaultFieldMetadata(fm, vm, Object.class, false, null);
TestPropertyChangeListener pcl = new TestPropertyChangeListener(FieldMetadata.ENABLED_PROPERTY);
m.addPropertyChangeListener(FieldMetadata.ENABLED_PROPERTY, pcl);
assertEquals(0, pcl.eventCount());