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

import (
	"bytes"
	"errors"
	"fmt"
	"io"
	"os"
	"path"
	"testing"

	"github.com/valyala/fasthttp"
)

type customJSON struct {
	Value string
}

func (cj customJSON) MarshalJSON() ([]byte, error) {
	data := fmt.Sprintf(`{"Value":"%s"}`, cj.Value)

	return []byte(data), nil
}

func TestJSONResponse(t *testing.T) { //nolint:funlen
	type args struct {
		body            interface{}
		statusCode      int
		jsonMarshalFunc JSONMarshalFunc
	}

	type want struct {
		body        string
		statusCode  int
		contentType string
		err         bool
	}

	tests := []struct {
		name string
		args args
		want want
	}{
		{
			name: "ValidBody",
			args: args{
				body:            JSON{"test": true},
				statusCode:      200,
				jso
    
func TestRedirectResponse(t *testing.T) {
	type args struct {
		url        string
		statusCode int
	}

	type want struct {
		locationURL string
		statusCode  int
	}

	tests := []struct {
		name string
		args args
		want want
	}{
		{
			name: "Test",
			args: args{
				url:        "http://urltoredirect.es",
				statusCode: 301,
			},
			want: want{
				locationURL: "http://urltoredirect.es/",
				statusCode:  301,
			},
		},
	}

	for _, test := range tests {
		tt := test

		t.Run(tt.name, func(t *testing.T) {
			t.Helper()

			ctx := new(fasthttp.RequestCtx)
			actx := AcquireRequestCtx(ctx)

			if err := actx.RedirectResponse(tt.args.url, tt.args.statusCode); err != nil {
				t.Errorf("RedirectResponse() error: %v", err)
			}

			responseLocation := string(actx.Response.Header.Peek("Location"))
			if responseLocation != tt.want.locationURL {
				t.Errorf("Header content-disposition: '%v', want: '%v'", responseLocation, tt.want.locationURL)
			}

			responseStatusCode := actx.Response.StatusCode()
			if responseStatusCode != tt.want.statusCode {
				t.Errorf("status_code: '%v', want: '%v'", responseStatusCode, tt.want.statusCode)
			}
		})
	}
}