protected Object writeReplace() {
    return new SerializationProxy(this);
  }
Specifies conditions under which {@code copyTo} is performed. Default is {@code FAIL}.

@param when the conditions under which {@code copyTo} is performed
@return a reference to this SerializableTemporaryFolder
geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/SerializableTemporaryFolder.java