Describe("Capacity", func() {
		capacity := garden.Capacity{
			MemoryInBytes: 34567809,
			DiskInBytes:   7834506,
		}

		var gotCapacity garden.Capacity

		itRetries(func() error {
			var err error
			gotCapacity, err = conn.Capacity()
			return err
		}, func(err error) {
			innerConnection.CapacityReturns(capacity, err)
		}, func() int {
			return innerConnection.CapacityCallCount()
		}, func() {
			It("calls through to garden", func() {
				Ω(innerConnection.CapacityCallCount()).Should(Equal(1))
			})

			It("returns the capacity", func() {
				Ω(gotCapacity).Should(Equal(capacity))
			})
		})
	})

	Describe("List", func() {
		properties := garden.Properties{
			"A": "B",
		}
	Describe("Capacity", func() {
		capacity := garden.Capacity{
			MemoryInBytes: 34567809,
			DiskInBytes:   7834506,
		}

		var gotCapacity garden.Capacity

		itRetries(func() error {
			var err error
			gotCapacity, err = conn.Capacity()
			return err
		}, func(err error) {
			innerConnection.CapacityReturns(capacity, err)
		}, func() int {
			return innerConnection.CapacityCallCount()
		}, func() {
			It("calls through to garden", func() {
				Expect(innerConnection.CapacityCallCount()).To(Equal(1))
			})

			It("returns the capacity", func() {
				Expect(gotCapacity).To(Equal(capacity))
			})
		})
	})

	Describe("List", func() {
		properties := garden.Properties{
			"A": "B",
		}