func (s *serviceStub) BindDetails() brokerapi.BindDetails {
	return brokerapi.BindDetails{
		ServiceID: s.ServiceId,
		PlanID:    s.PlanId,
	}
}
BindDetails creates a brokerapi.BindDetails object valid for
the given service.
package brokers_test
import (
	"context"
	"encoding/json"
	"errors"
	"os"
	"reflect"
	"testing"
	. "github.com/GoogleCloudPlatform/gcp-service-broker/brokerapi/brokers"
	"github.com/GoogleCloudPlatform/gcp-service-broker/db_service"
	"github.com/GoogleCloudPlatform/gcp-service-broker/db_service/models"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/broker"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/broker/brokerfakes"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/providers/builtin"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/providers/builtin/base"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/providers/builtin/storage"
	"github.com/GoogleCloudPlatform/gcp-service-broker/pkg/varcontext"
	"github.com/GoogleCloudPlatform/gcp-service-broker/utils"
	"github.com/pivotal-cf/brokerapi"
	"google.golang.org/api/googleapi"
	"code.cloudfoundry.org/lager"
	"github.com/jinzhu/gorm"
	"golang.org/x/oauth2/jwt"
)
type InstanceState int
const (
	StateNone InstanceState = iota
	StateProvisioned
	StateBound
	StateUnbound
	StateDeprovisioned
)
const (
	fakeInstanceId = "newid"
	fakeBindingId  = "newbinding"
)
type serviceStub struct {
	ServiceId         string
	PlanId            string
	Provider          *brokerfakes.FakeServiceProvider
	ServiceDefinition *broker.ServiceDefinition
}
func (s *serviceStub) ProvisionDetails() brokerapi.ProvisionDetails {
	return brokerapi.ProvisionDetails{
		ServiceID: s.ServiceId,
		PlanID:    s.PlanId,
	}
}
func (s *serviceStub) DeprovisionDetails() brokerapi.DeprovisionDetails {
	return brokerapi.DeprovisionDetails{
		ServiceID: s.ServiceId,
		PlanID:    s.PlanId,
	}
}