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: validate_test.go
    path of file: ./repos/chainlink/core/services/ocr2/validate
    
    the code of the file until where you have to start completion: package validate_test

import (
	"encoding/json"
	"testing"
	"time"

	"github.com/ethereum/go-ethereum/common/hexutil"
	"github.com/manyminds/api2go/jsonapi"
	"github.com/pelletier/go-toml"
	"
    
func TestOCR2GenericPluginConfig_Unmarshal(t *testing.T) {
	payload := `
[pluginConfig]
pluginName = "median"
telemetryType = "median"
foo = "bar"

[[pluginConfig.pipelines]]
name = "default"
spec = "a spec"
`
	tree, err := toml.Load(payload)
	require.NoError(t, err)

	// Load the toml how we load it in the plugin, i.e. convert to
	// map[string]any first, then treat as JSON
	o := map[string]any{}
	err = tree.Unmarshal(&o)
	require.NoError(t, err)

	b, err := json.Marshal(o)
	require.NoError(t, err)

	e := &envelope{}
	err = json.Unmarshal(b, e)
	require.NoError(t, err)

	pc := e.PluginConfig
	assert.Equal(t, "bar", pc.PluginConfig["foo"])
	assert.Len(t, pc.Pipelines, 1)
	assert.Equal(t, validate.PipelineSpec{Name: "default", Spec: "a spec"}, pc.Pipelines[0])
	assert.Equal(t, "median", pc.PluginName)
	assert.Equal(t, "median", pc.TelemetryType)
}