def METHOD_NAME(
    client_configuration: QCSClientConfiguration,
):
    """
    Assert that endpoint ID is correctly used to engage against an endpoint when the cached engagement has expired.
    """
    engagement_manager = EngagementManager(client_configuration=client_configuration)
    cache_engagement(
        engagement_manager,
        expired_engagement(quantum_processor_id="some-processor", endpoint_id="custom-endpoint"),
        client_configuration,
    )
    respx.post(
        url=f"{client_configuration.profile.api_url}/v1/engagements",
        json={"quantumProcessorId": "some-processor", "endpointId": "custom-endpoint"},
    ).respond(json=unexpired_engagement(quantum_processor_id="some-processor", endpoint_id="custom-endpoint").to_dict())
    engagement = engagement_manager.get_engagement(quantum_processor_id="some-processor", endpoint_id="custom-endpoint")
    assert engagement == unexpired_engagement(quantum_processor_id="some-processor", endpoint_id="custom-endpoint")