}) It("TestShowServiceFailsWithUsage", func() { reqFactory := &testreq.FakeReqFactory{LoginSuccess: true, TargetedSpaceSuccess: true} ui := callShowService([]string{}, reqFactory) Expect(ui.FailedWithUsage).To(BeTrue()) ui = callShowService([]string{"my-service"}, reqFactory) Expect(ui.FailedWithUsage).To(BeFalse()) }) It("TestShowServiceOutput", func() { offering := models.ServiceOfferingFields{} offering.Label = "mysql" offering.DocumentationUrl = "http://documentation.url" offering.Description = "the-description" plan := models.ServicePlanFields{} plan.Guid = "plan-guid" plan.Name = "plan-name" serviceInstance := models.ServiceInstance{} serviceInstance.Name = "service1" serviceInstance.Guid = "service1-guid" serviceInstance.ServicePlan = plan serviceInstance.ServiceOffering = offering reqFactory := &testreq.FakeReqFactory{ LoginSuccess: true, TargetedSpaceSuccess: true, ServiceInstance: serviceInstance,