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: deprecation_test.go
    path of file: ./repos/iris/versioning
    
    the code of the file until where you have to start completion: package versioning_test

import (
	"testing"
	"time"

	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/httptest"
	"github.com/katar
    
func TestDeprecated(t *testing.T) {
	app := iris.New()

	writeVesion := func(ctx iris.Context) {
		ctx.WriteString(versioning.GetVersion(ctx))
	}

	opts := versioning.DeprecationOptions{
		WarnMessage:     "deprecated, see <this link>",
		DeprecationDate: time.Now().UTC(),
		DeprecationInfo: "a bigger version is available, see <this link> for more information",
	}
	app.Get("/", versioning.Deprecated(writeVesion, opts))

	e := httptest.New(t, app)

	ex := e.GET("/").WithHeader(versioning.AcceptVersionHeaderKey, "1.0").Expect()
	ex.Status(iris.StatusOK).Body().IsEqual("1.0")
	ex.Header("X-API-Warn").Equal(opts.WarnMessage)
	expectedDateStr := opts.DeprecationDate.Format(app.ConfigurationReadOnly().GetTimeFormat())
	ex.Header("X-API-Deprecation-Date").Equal(expectedDateStr)
}