Mocking the dependencies.