test single pattern (Serializable) with readResolve method.