We could use that kind of pattern to mock the singletons:
```
MyClass.setMockSingleton(mockSingleton)
MyClass.singletong() => mockSingleton ? mockSingleton : return realSingleton (and create it if needed);
```