Do not mock during serialization/deserialization (duh)