Why do we have this as static vs instance with clear Dependency Injection and singleton (if that's what you need here)?

How do we test it then?