def METHOD_NAME(self):
    total = 50000
    page_size = 5
    mocked_qs = MagicMock()
    mocked_qs.__getitem__().execute().hits.total = total
    paginator = ESPaginator(mocked_qs, page_size)
    assert ESPaginator.max_result_window == 30000
    page = paginator.page(ESPaginator.max_result_window / page_size - 1)
    assert page.has_next() is True
    page = paginator.page(ESPaginator.max_result_window / page_size)
    assert page.has_next() is False