def METHOD_NAME(self):
    def get_next(continuation_token=None):
        """Simplify my life and return JSON and not response, but should be response."""
        if not continuation_token:
            return {"nextLink": "page2", "value": ["value1.0", "value1.1"]}
        else:
            return {"nextLink": None, "value": ["value2.0", "value2.1"]}
    def extract_data(response):
        return response["nextLink"], iter(response["value"])
    pager = ItemPaged(get_next, extract_data)
    page1 = next(pager)
    assert page1 == "value1.0"
    page1 = next(pager)
    assert page1 == "value1.1"
    page2 = next(pager)
    assert page2 == "value2.0"
    page2 = next(pager)
    assert page2 == "value2.1"
    with pytest.raises(StopIteration):
        next(pager)