Code example for IOError

0
     * @tests serialization/deserialization. 
     * @since 1.6 
     */ 
    public void testSerializationSelf() throws Exception { 
        String errorMsg = "java.io.IOError";
        IOError e = new IOError(new Throwable(errorMsg));
        SerializationTest.verifySelf(e);
    } 
     
    /** 
     * @tests serialization/deserialization compatibility with RI. 
     * @since 1.6 
     */ 
    public void testSerializationCompatibility() throws Exception { 
        String errorMsg = "java.io.IOError";
        IOError e = new IOError(new Throwable(errorMsg));
        SerializationTest.verifyGolden(this, e);
    } 
 
}