Replace File dependencies with mocks