async def METHOD_NAME():
    def get_query(pipeline_request):
        assert urlparse(pipeline_request.http_request.url).query == "api-version=2021-10-01"
        raise ValueError("Passed!")
    client = get_client(callback=get_query)
    with pytest.raises(ValueError) as ex:
        # the default value is "2016-02-29"
        await client.basic.put_valid({}, params={"api-version": "2021-10-01"})
    assert str(ex.value) == "Passed!"
    await client.close()