fakeContainer *gfakes.FakeContainer ) BeforeEach(func() { fakeContainer = new(gfakes.FakeContainer) fakeContainer.HandleReturns("some-handle") fakeGardenClient.LookupReturns(fakeContainer, nil) }) It("returns the container and no error", func() { foundContainer, found, err := worker.LookupContainer(logger, handle) Expect(err).NotTo(HaveOccurred()) Expect(found).To(BeTrue()) Expect(foundContainer.Handle()).To(Equal(fakeContainer.Handle())) }) Describe("the container", func() { var foundContainer Container var findErr error JustBeforeEach(func() { foundContainer, _, findErr = worker.LookupContainer(logger, handle) }) Context("when the concourse:volumes property is present", func() { var ( handle1Volume *bfakes.FakeVolume handle2Volume *bfakes.FakeVolume expectedHandle1Volume *wfakes.FakeVolume