Static mocking: https://lkrnac.net/blog/2014/01/mock-static-method/ Constructor mocking: https://lkrnac.net/blog/2014/01/mock-constructor/
link