You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: nested_param_paginator_top_level_links_test.rb
    path of file: ./repos/json_api_client/test/unit
    
    the code of the file until where you have to start completion: require 'test_helper'

# Copied from TopLevelLinksTest and modified to have consistent
# pagination params using the new NestedParamPaginator
class NestedParamPaginatorTopLevelLinksTest < Minitest::Test

  def setup
    @nested_param_paginator = JsonApiClient::Paginating::NestedParamPaginator
    @default_paginator = JsonApiClient::Paginating::Paginator
    Article.paginator = @nested_param_paginator
  end

  def teardown
    @nest
    
  def test_can_parse_pagination_links_when_no_next_page
    stub_request(:get, "http://example.com/articles")
      .to_return(headers: {content_type: "application/vnd.api+json"}, body: {
        data: [{
          type: "articles",
          id: "1",
          attributes: {
            title: "JSON API paints my bikeshed!"
          }
        }],
        links: {
          self: "http://example.com/articles",
          prev: nil,
          first: "http://example.com/articles",
          last: "http://example.com/articles?page[page]=1"
        }
      }.to_json)

    assert_pagination_when_no_next_page
  end