def METHOD_NAME(self, cache_dir: Path):
    expected = cache_dir / self.filepath
    cache = Cache(self.filepath)
    assert not expected.exists()
    cache.set("key", "value")
    assert expected.exists()