func CleanupSQL(persister brokerapi.Persister) {
	persister.Connect()
	persister.Db.Exec("delete from serviceagents")
	persister.Db.Exec("delete from servicebindings")
	persister.Db.Exec("delete from serviceinstances")
	persister.Db.Exec("delete from brokerconfigurations")
	persister.Db.Exec("delete from imageconfigurations")
	persister.Db.Exec("delete from serviceconfigurations")
	persister.Db.Exec("delete from brokercertificates")
}
			Expect(brokerservice.HTTPClient).ShouldNot(BeNil())
		})

		It("should not respond to catalog request", func() {
			brokerservice, serviceagent, ts, handler = testnet.NewBrokerService(serviceagent, persister, emptyGetRequest)
			defer ts.Close()

			var catalog brokerapi.Catalog
			catalog, err = brokerservice.Catalog()
			Expect(catalog.Services).To(BeEmpty())
			Expect(err).Should(BeAssignableToTypeOf(&dockerapi.CFError{}))
			Expect(err.Error()).To(Equal("Catalog is not Supported from the client"))
		})

		It("should provision a service", func() {
			persister.Connect()
			brokerservice, serviceagent, ts, handler = testnet.NewBrokerServiceWithMultipleRequests(serviceagent, persister, []testnet.TestRequest{testnet.Provision_ListAllImagesRequest, testnet.Provision_CreateContainerRequest, testnet.Provision_InspectImageRequest, testnet.Provision_StartContainerRequest, testnet.Provision_InspectContainerRequest})
			defer ts.Close()

			var pr brokerapi.ProvisioningRequest
			var provisionurl string
			pr = brokerapi.ProvisioningRequest{InstanceId: "myFakeInstance",
				ServiceId: "mysql:latest",
				PlanId:    "100",
				OrgId:     "myFakeOrg",
				SpaceId:   "myFakeSpace",
			}
			provisionurl, err = brokerservice.Provision(pr)
			Expect(err).To(BeNil())
			Expect(provisionurl).To(Equal("mysql://fakehost:1234"))
		})