TTL: time.Hour, ResourceVersion: atc.Version{"some": "theversion"}, ResourceHash: "hash", })) }) It("releases the volume, since the container keeps it alive", func() { Expect(foundVolume.ReleaseCallCount()).To(Equal(1)) }) Describe("the cache", func() { Describe("IsInitialized", func() { Context("when the volume has the initialized property set", func() { BeforeEach(func() { foundVolume.PropertiesReturns(baggageclaim.VolumeProperties{ "initialized": "any-value", }, nil) }) It("returns true", func() { Expect(initCache.IsInitialized()).To(BeTrue()) }) }) Context("when the volume has no initialized property", func() { BeforeEach(func() { foundVolume.PropertiesReturns(baggageclaim.VolumeProperties{}, nil) }) It("returns false", func() { initialized, err := initCache.IsInitialized()