tempRoute := Route{Host: "app-new", Domain: Domain{Name: "mybluemix.net"}}

		It("unmaps the temporary route", func() {
			p.UnmapTemporaryRouteFromNewApp(newApp, tempRoute)

			cfCommands := getAllCfCommands(connection)

			Expect(cfCommands).To(Equal([]string{
				"unmap-route app-new mybluemix.net -n app-new",
			}))
		})

		Context("when the unmapping fails", func() {
			BeforeEach(func() {
				connection.CliCommandStub = func(args ...string) ([]string, error) {
					return nil, errors.New("failed to unmap route")
				}
			})

			It("returns an error", func() {
				p.UnmapTemporaryRouteFromNewApp(newApp, tempRoute)

				Expect(bgdExitsWithErrors[0]).To(HaveOccurred())
			})
		})
	})

	Describe("renaming an app", func() {
		var app *Application

		BeforeEach(func() {