One of the reasons I see for preferring dependency injection over global variables is that it becomes difficult to mock a global during testing. But suppose I declare the gl