async def METHOD_NAME(self):
    credential = self.get_credential(MetricsQueryClient)
    endpoint = "https://management.chinacloudapi.cn"
    client = MetricsQueryClient(credential, endpoint=endpoint)
    assert client._endpoint == endpoint
    assert f"{endpoint}/.default" in client._client._config.authentication_policy._scopes