async def METHOD_NAME(self):
    """Test that pagination works."""
    merge_requests_json1 = self.merge_requests_json([self.merge_request_json(1)], count=2, has_next_page=True)
    merge_requests_json2 = self.merge_requests_json([self.merge_request_json(2)], count=2)
    merge_request_fields_response = AsyncMock()
    merge_requests_page1 = AsyncMock()
    merge_requests_page2 = AsyncMock()
    execute = AsyncMock(side_effect=[merge_request_fields_response, merge_requests_page1, merge_requests_page2])
    merge_request_fields_response.json = AsyncMock(return_value=self.merge_request_fields_json())
    merge_requests_page1.json = AsyncMock(return_value=merge_requests_json1)
    merge_requests_page2.json = AsyncMock(return_value=merge_requests_json2)
    entities = [self.create_entity(1), self.create_entity(2)]
    response = await self.collect_merge_requests(execute)
    self.assert_measurement(response, value="2", total="2", entities=entities, landing_url=self.LANDING_URL)