Allow mocking a class where that has a method with an unknown class as a typehint