### Body

We currently miss fsspec retrieval for providers and #36186 fixed compatibility issue with it, so we should likely add unit tests covering it.

### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
store = attach(protocol="file", conn_id="fake", fs=fake_fs)
        o = ObjectStoragePath(path, conn_id="fake")
        getattr(o, fn)(**args)
        getattr(store.fs, fn2).assert_called_once_with(expected_args, **expected_kwargs)
    def test_stat(self):
        with NamedTemporaryFile() as f:
            o = ObjectStoragePath(f"file://{f.name}")
            assert o.stat().st_size == 0
            assert S_ISREG(o.stat().st_mode)
            assert S_ISDIR(o.parent.stat().st_mode)
    def test_bucket_key_protocol(self):