BeforeEach(func() {
			appsList = make([]plugin_models.GetAppsModel, 0)
			appsList = append(appsList,
				plugin_models.GetAppsModel{"spring-music", "", "", 0, 0, 0, 0, nil},
				plugin_models.GetAppsModel{"qwerty", "", "", 0, 0, 0, 0, nil},
				plugin_models.GetAppsModel{"apple_pie", "", "", 0, 0, 0, 0, nil},
			)
			myQuota := plugin_models.QuotaFields{}
			myOrg := plugin_models.Organization{plugin_models.OrganizationFields{"", "Jeanie", myQuota}}
			mySpace := plugin_models.Space{plugin_models.SpaceFields{"", "development"}}

			fakeCliConnection = &fakes.FakeCliConnection{}
			fakeCliConnection.GetAppsReturns(appsList, nil)
			fakeCliConnection.GetCurrentOrgReturns(myOrg, nil)
			fakeCliConnection.GetCurrentSpaceReturns(mySpace, nil)
			fakeCliConnection.UsernameReturns("*****@*****.**", nil)
			wildcardPlugin = &Wildcard{}
			ui = &testterm.FakeUI{}
		})
		Describe("When the user provides correct input for wildcard-apps", func() {
			It("prints correct introductory message", func() {
				output := io_helpers.CaptureOutput(func() {
					wildcardPlugin.Run(fakeCliConnection, []string{"wildcard-apps", "app*"})
				})

				Expect(output).To(ContainSubstrings(
					[]string{"Getting apps matching app* in org Jeanie"},
					[]string{"space development"},
					[]string{"as [email protected]"},
					[]string{"OK"},
				))