Code example for InputMismatchException

0
    /** 
     * @tests serialization/deserialization. 
     */ 
    public void testSerializationSelf() throws Exception { 
 
        SerializationTest.verifySelf(new InputMismatchException(ERROR_MESSAGE));
    } 
 
    /** 
     * @tests serialization/deserialization compatibility with RI. 
     */ 
    public void testSerializationCompatibility() throws Exception { 
 
        SerializationTest.verifyGolden(this, new InputMismatchException(
                ERROR_MESSAGE));
    } 
}