cloudcontrollerv2.Warnings{"foo"},
					nil,
				)
			})

			It("returns the application and warnings", func() {
				app, warnings, err := actor.GetApplicationBySpace("some-app", "some-space-guid")
				Expect(err).ToNot(HaveOccurred())
				Expect(app).To(Equal(Application{
					GUID: "some-app-guid",
					Name: "some-app",
				}))
				Expect(warnings).To(Equal(Warnings{"foo"}))

				Expect(fakeCloudControllerClient.GetApplicationsCallCount()).To(Equal(1))
				Expect(fakeCloudControllerClient.GetApplicationsArgsForCall(0)).To(ConsistOf([]cloudcontrollerv2.Query{
					cloudcontrollerv2.Query{
						Filter:   cloudcontrollerv2.NameFilter,
						Operator: cloudcontrollerv2.EqualOperator,
						Value:    "some-app",
					},
					cloudcontrollerv2.Query{
						Filter:   cloudcontrollerv2.SpaceGUIDFilter,
						Operator: cloudcontrollerv2.EqualOperator,
						Value:    "some-space-guid",
					},
				}))
			})
		})

		Context("when the application does not exists", func() {