})
		})
	})

	Describe("Cleaning up", func() {
		Context("when the container has an oom notifier running", func() {
			JustBeforeEach(func() {
				err := container.LimitMemory(garden.MemoryLimits{
					LimitInBytes: 42,
				})

				Expect(err).ToNot(HaveOccurred())
			})

			It("stops it", func() {
				container.Cleanup()
				Expect(fakeOomWatcher.UnwatchCallCount()).To(Equal(1))
			})
		})
	})

	Describe("Streaming data in", func() {
		It("streams the input to tar xf in the container as the specified user", func() {
			cmdSpec := fake_command_runner.CommandSpec{
				Path: containerDir + "/bin/nstar",
				Args: []string{
					"12345",
					"bob",
					"/some/directory/dst",
				},
			}