}) It("returns an error", func() { _, err := apiClient.Containers(nil) Ω(err).Should(HaveOccurred()) }) }) Context("and the client sends a ListRequest with a property filter", func() { It("forwards the filter to the backend", func() { _, err := apiClient.Containers(garden.Properties{ "foo": "bar", }) Ω(err).ShouldNot(HaveOccurred()) Ω(serverBackend.ContainersArgsForCall(serverBackend.ContainersCallCount() - 1)).Should(Equal( garden.Properties{ "foo": "bar", }, )) }) }) }) Context("when a container has been created", func() { var container garden.Container var fakeContainer *fakes.FakeContainer BeforeEach(func() { fakeContainer = new(fakes.FakeContainer)