It("responds with 404", func() {
				Expect(goaContext.ResponseStatus()).To(Equal(404))
			})
		})
	})

	Describe("#Delete", func() {
		var provisioningContext *app.DeleteProvisioningContext

		BeforeEach(func() {
			var err error
			provisioningContext, err = app.NewDeleteProvisioningContext(goaContext)
			Expect(err).ToNot(HaveOccurred())

			provisioningContext.InstanceId = "some-instance-id"
		})

		Context("when all goes ok", func() {
			BeforeEach(func() {
				state.InstanceExistsReturns(true)

				err := provisioningController.Delete(provisioningContext)
				Expect(err).ToNot(HaveOccurred())
			})

			It("responds with 200", func() {
				Expect(goaContext.ResponseStatus()).To(Equal(200))
			})

			It("sends the correct message to the state", func() {