async def METHOD_NAME(self):
    async def get_next(continuation_token=None):
        if not continuation_token:
            return {"nextLink": "foo", "value": ["bar"]}
        else:
            raise HttpResponseError()
    async def extract_data(response):
        return response["nextLink"], iter(response["value"] or [])
    pager = AsyncItemPaged(get_next, extract_data)
    assert await pager.__anext__() == "bar"
    with pytest.raises(HttpResponseError) as err:
        await pager.__anext__()
    assert err.value.continuation_token == "foo"