Let's take a concrete example. I created the following my_function Python function:

from google.cloud.aiplatform import Endpoint

def my_function(existing_endpoint: Endpoint)-> str:
    return existing_endpoint._gca_resource.name

I want to write a functional tests for this function working on my local computer without any specific access to a GCP project. Basically, it would be:

def test_my_function_should_work():
    ## something to simulate an existing endpoint
    assert my_function(fake_endpoint) == "projects/12345/locations/europe-west1/endpoints/12345"

How can I create an object simulating the existing endpoint resource ?