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

	Describe("#Delete", func() {
		var bindingContext *app.DeleteBindingContext

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

			bindingContext.InstanceId = "instance-1"
			bindingContext.BindingId = "binding-1"
		})

		JustBeforeEach(func() {
			bindingController = controllers.NewBinding(state)
			err := bindingController.Delete(bindingContext)
			Expect(err).ToNot(HaveOccurred())
		})

		Context("when all goes ok", func() {
			BeforeEach(func() {
				instance := repository.Instance{
					ID:       "instance-1",
					Bindings: []string{"binding-1"},
				}