def METHOD_NAME(self):
    credential = AzureKeyCredential(key="old_api_key")
    client = SearchIndexClient("endpoint", credential)
    search_client = client.get_search_client("index")
    assert isinstance(search_client, SearchClient)