Code example for PropertyChangeEvent

0
    /** 
     * @tests serialization/deserialization. 
     */ 
    public void testSerializationSelf() throws Exception { 
 
        SerializationTest.verifySelf(new PropertyChangeEvent(new Object(),
                "myPropName", "oldValue", "newValue"), comparator);
    } 
 
    /** 
     * @tests serialization/deserialization compatibility with RI. 
     */ 
    public void testSerializationCompatibility() throws Exception { 
 
        SerializationTest 
                .verifyGolden(this, new PropertyChangeEvent(new Object(),
                        "myPropName", "oldValue", "newValue"), comparator);
    } 
}