func NewACIMock() *ACIMock {
	mock := new(ACIMock)
	mock.start()
	return mock
}
NewACIMock creates a new Azure Container Instance mock server.
package provider
import (
	"bytes"
	"encoding/json"
	"net/http"
	"net/http/httptest"
	"github.com/gorilla/mux"
	"github.com/virtual-kubelet/azure-aci/client/aci"
)
type ACIMock struct {
	server               *httptest.Server
	OnCreate             func(string, string, string, *aci.ContainerGroup) (int, interface{})
	OnGetContainerGroups func(string, string) (int, interface{})
	OnGetContainerGroup  func(string, string, string) (int, interface{})
	OnGetRPManifest      func() (int, interface{})
}
const (
	containerGroupsRoute  = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ContainerInstance/containerGroups"
	containerGroupRoute   = containerGroupsRoute + "/{containerGroup}"
	resourceProviderRoute = "/providers/Microsoft.ContainerInstance"
)