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());
assertTrue(m.isEnabled());
m.setEnabled(true);
assertEquals(0, pcl.eventCount());
assertTrue(m.isEnabled());