is this really necessary? is there no way we could have this configurable so it can be passed as a parameter instead of mocking?