func makeResponse(body string, headers map[string][]string) *http.Response {
	b := bytes.NewBufferString(body)
	return &http.Response{
		Body:   ioutil.NopCloser(b),
		Header: http.Header(headers),
	}
}
Helper that creates test responses
package main
import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"net/http"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
)