def METHOD_NAME(self, query_get_as, monkeypatch):
    def mock_get_inventory(_s, _d: str, _t: str):
        return {"type": CacheType.SYMLINK, "stream": None}
    monkeypatch.setattr(CacheManager, "get_inventory", mock_get_inventory)
    monkeypatch.setattr(Path, "is_file", lambda self: False)
    monkeypatch.setattr(Path, "exists", lambda self: False)
    response = query_get_as("fio_2", "subdir1/f1_sym", HTTPStatus.BAD_REQUEST)
    assert response.json == {
        "message": "The specified path does not refer to a regular file"
    }