func NewMockNewRelic() MockNewRelic {
	mock := MockNewRelic{}
	mock.RequestFunc = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		w.WriteHeader(200)
	})
	mock.Server = httptest.NewServer(mock.RequestFunc)
	return mock
}
Create a new mock for the New Relic service
package newrelic_platform_go
import (
	"net/http"
	"net/http/httptest"
	"testing"
	"time"
)
type MockMetrica struct {
	Value float64
	Name  string
	Units string
}
func NewMockMetrica() MockMetrica {
	return MockMetrica{
		Value: 5.2,
		Name:  "mock-metrica",
		Units: "flots",
	}
}
func (m MockMetrica) GetValue() (float64, error) {
	return m.Value, nil
}
func (m MockMetrica) GetName() string {
	return m.Name
}
func (m MockMetrica) GetUnits() string {
	return m.Units
}
type MockNewRelic struct {
	RequestFunc http.HandlerFunc
	Server      *httptest.Server
}