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: processor_jsonschema_test.go
    path of file: ./repos/benthos/internal/impl/pure
    
    the code of the file until where you have to start completion: package pure_test

import (
	"context"
	"fmt"
	"os"
	"path/filepath"
	"strings"
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"

	"github.com/benthosdev/benthos/v4/internal/component/testutil"
	"github.com/benthosdev/benthos/v4/internal/manager/mock"
	"github.com/benthosdev/benthos/v4/internal/message"
)

func TestJSONSchemaExternalSchemaRelativePath(t *testing.T) {
	schema := `{
  "$id": "ht
    
func TestJSONSchemaExternalSchemaRelativePath(t *testing.T) {
	schema := `{
  "$id": "https://example.com/person.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Person",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string",
      "description": "The person's first name."
    },
    "lastName": {
      "type": "string",
      "description": "The person's last name."
    },
    "age": {
      "description": "Age in years which must be equal to or greater than zero.",
      "type": "integer",
      "minimum": 0
    }
  }
}`

	tmpDir := t.TempDir()

	sFileName := filepath.Join(tmpDir, "foo")
	require.NoError(t, os.WriteFile(sFileName, []byte(schema), 0o777))

	cwd, err := os.Getwd()
	require.NoError(t, err)

	sFileName, err = filepath.Rel(cwd, sFileName)
	require.NoError(t, err)

	conf, err := testutil.ProcessorFromYAML(fmt.Sprintf(`
json_schema:
  schema_path: file://%v
`, sFileName))
	require.NoError(t, err)

	c, err := mock.NewManager().NewProcessor(conf)
	require.NoError(t, err)

	msgs, _ := c.ProcessBatch(context.Background(), message.Batch{
		message.NewPart([]byte(`{"firstName":"John","lastName":"Doe","age":21}`)),
	})
	require.Len(t, msgs, 1)

	assert.Equal(t, `{"firstName":"John","lastName":"Doe","age":21}`, string(msgs[0][0].AsBytes()))
	assert.NoError(t, msgs[0][0].ErrorGet())
}