}, }, ccv2.Warnings{"foo"}, nil, ) }) It("returns the service binding and warnings", func() { serviceBinding, warnings, err := actor.GetServiceBindingByApplicationAndServiceInstance("some-app-guid", "some-service-instance-guid") Expect(err).ToNot(HaveOccurred()) Expect(serviceBinding).To(Equal(ServiceBinding{ GUID: "some-service-binding-guid", })) Expect(warnings).To(Equal(Warnings{"foo"})) Expect(fakeCloudControllerClient.GetServiceBindingsCallCount()).To(Equal(1)) Expect(fakeCloudControllerClient.GetServiceBindingsArgsForCall(0)).To(ConsistOf([]ccv2.Query{ ccv2.Query{ Filter: ccv2.AppGUIDFilter, Operator: ccv2.EqualOperator, Value: "some-app-guid", }, ccv2.Query{ Filter: ccv2.ServiceInstanceGUIDFilter, Operator: ccv2.EqualOperator, Value: "some-service-instance-guid", }, })) }) })