ExperimentalReplace the implementation for a given factory, such that future calls to
$(factory) will call or construct the replacement instead.
Set the cached singleton instance for a given factory. (e.g. for testing)
Unset the cached singleton for a given factory, such that the next call
to $(factory) will create a new instance.
Utilities for manipulating the singleton cache (e.g. for testing)