def METHOD_NAME(self):
    credential = AzureKeyCredential(key="old_api_key")
    client = SearchIndexerClient("endpoint", credential)
    assert client._endpoint.startswith("https")
    client = SearchIndexerClient("https://endpoint", credential)
    assert client._endpoint.startswith("https")
    with pytest.raises(ValueError):
        client = SearchIndexerClient("http://endpoint", credential)
    with pytest.raises(ValueError):
        client = SearchIndexerClient(12345, credential)