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

import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"net/http"
	"os"
	"testing"

	mockclient "github.com/Checkmarx/kics/pkg/descriptions/mock"
	"github.com/stretchr/testify/require"
)

var (
	responseJSON = `{
		"descriptions": {
			"foo1": {
				"cisDescriptionText": "",
				"cisDescriptionID": "",
				"cisDescriptionRuleID": "",
				"cisDescriptionTitle": "",
				"cisRationaleText": "",
				"cisBenchmarkName": "",
				"cisBenchmarkVersion": ""
			},
			"foo2": {
				"cisDescriptionText": "",
				"cisDescriptionID": "",
				"cisDescriptionRuleID": "",
				"cisDescriptionTitle"
    
func TestClient_post(t *testing.T) {
	HTTPRequestClient = &mockclient.MockHTTPClient{}
	mockclient.GetDoFunc = func(*http.Request) (*http.Response, error) {
		r := ioutil.NopCloser(bytes.NewReader([]byte(responseJSON)))
		return &http.Response{
			StatusCode: 200,
			Body:       r,
		}, nil
	}
	headers := map[string]string{
		"Content-Type": "application/json",
	}
	requestBody := mockclient.MockRequestBody{
		Descriptions: []string{
			"foo1",
			"foo2",
			"foo3",
		},
	}

	jsonBytes, err := json.Marshal(requestBody)
	require.NoError(t, err, "Marshaling request body should not return an error")

	request, err := http.NewRequest(http.MethodPost, "http://example.com", bytes.NewReader(jsonBytes))
	require.NoError(t, err, "Creating request should not return an error")

	for key, value := range headers {
		request.Header.Add(key, value)
	}
	response, err := doRequest(request)
	require.NoError(t, err, "post() should not return an error")
	defer response.Body.Close()
	require.NotNil(t, response, "post() should return a response")
	require.Equal(t, 200, response.StatusCode, "post() should return a 200 response")
}