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: serializing_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'

class SerializingTest < Minitest::Test

  class LimitedField < TestResource
    self.rea
    
  def test_as_json_api_with_relationships
    expected = {
      'type' => 'articles',
      'attributes' => {
        'foo' => 'bar',
        'qwer' => 'asdf'
      },
      'relationships' => {
        'author' => {
          'data' => {
            'type' => 'people',
            'id' => 123
          }
        }
      }
    }

    article = Article.new(foo: 'bar', qwer: 'asdf')
    article.relationships.author = Person.new(id: 123, name: 'Bob')

    assert_equal expected, article.as_json_api
  end