#23956Add functions to provide mocks for makeInstance
Description
This will make unit-testing a lot less of a hassle.
In addition, we should have a function to make makeInstance drop all stored singletons.
(issue imported from #M16267)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.