How to write unit tests for a singleton class
Once a static field value changes in unit tests, the change applies to other tests because it's static. It's important to split it into two classes. One class has the main logic and the other stores the class to provide it as singleton.