CFRelease:           "v219",
				CFRoutingRelease:    "v220",
				DiegoRelease:        "v221",
				GardenLinuxRelease:  "v222",
				LatticeRelease:      "some-server-lattice-sha",
				LatticeReleaseImage: "some-server-lattice-image-sha",
				LTC:                 "v225",
				Receptor:            "v226",
			}, nil)
		})

		It("Prints the CLI and API versions", func() {
			test_helpers.ExecuteCommandWithArgs(versionCommand, []string{})

			Expect(fakeVersionManager.ServerVersionsCallCount()).To(Equal(1))
			Expect(fakeVersionManager.ServerVersionsArgsForCall(0)).To(Equal("http://receptor.lattice.xip.io"))

			Expect(outputBuffer).To(test_helpers.SayLine("Client: some-client-lattice-sha"))
			Expect(outputBuffer).To(test_helpers.SayLine("Server: some-server-lattice-sha"))
			Expect(outputBuffer).To(test_helpers.SayLine("\tImage: some-server-lattice-image-sha"))
			Expect(outputBuffer).To(test_helpers.SayLine("\tCF: v219"))
			Expect(outputBuffer).To(test_helpers.SayLine("\tDiego: v221"))
			Expect(outputBuffer).To(test_helpers.SayLine("\tGarden-Linux: v222"))
			Expect(outputBuffer).To(test_helpers.SayLine("\tRouting: v220"))
		})

		Context("when the version manager returns an error", func() {
			It("should print an error", func() {
				fakeVersionManager.ServerVersionsReturns(version.ServerVersions{}, errors.New("failed"))

				test_helpers.ExecuteCommandWithArgs(versionCommand, []string{})