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: test_xrefs.rb
    path of file: ./repos/origami/test
    
    the code of the file until where you have to start completion: require 'minitest/autorun'
require 'stringio'
require 'strscan'

class TestXrefs < MiniTest::Test

    def setup
        @target = PDF.new
    end

    def test_xreftable
        output = StringIO.new

        @ta
    
    def test_xreftable
        output = StringIO.new

        @target.save(output)
        output.reopen(output.string, 'r')

        pdf = PDF.read(output, verbosity: Parser::VERBOSE_QUIET, ignore_errors: false)

        xreftable = pdf.revisions.last.xreftable
        assert_instance_of XRef::Section, xreftable

        pdf.root_objects.each do |object|
            xref = xreftable.find(object.no)

            assert_instance_of XRef, xref
            assert xref.used?

            assert_equal xref.offset, object.file_offset
        end
    end