Context("when the instance does not exist", func() {
				It("returns an error", func() {
					instanceID := "bar"
					_, err := repo.FindByID(instanceID)
					Expect(err).To(HaveOccurred())
					Expect(err).To(Equal(brokerapi.ErrInstanceDoesNotExist))
				})
			})
		})

		Describe("InstanceExists", func() {
			Context("when instance does not exist", func() {
				It("returns false", func() {
					instanceID := "bar"
					result, err := repo.InstanceExists(instanceID)
					Ω(result).Should(BeFalse())
					Ω(err).ShouldNot(HaveOccurred())
				})
			})

			Context("when instance exists", func() {
				It("returns true", func() {
					instanceID := "foo"
					result, err := repo.InstanceExists(instanceID)
					Ω(result).Should(BeTrue())
					Ω(err).ShouldNot(HaveOccurred())
				})
			})
		})