 			@lines = ['1234','abc']
 			@path = "/path/to/doc"
 
+			@ProjectGetter.getProject = sinon.stub().callsArgWith(2, null, @project)
 			@ProjectEntityHandler._putElement = sinon.stub().callsArgWith(4, null, {path:{fileSystem:@path}})
 			@callback = sinon.stub()
 			@tpdsUpdateSender.addDoc = sinon.stub().callsArg(1)

			@folder =
				_id: ObjectId()
				name: "someFolder"
			@doc =
				_id: ObjectId()
				name: "new.tex"

				.onSecondCall()
				.callsArgWith(1, null, @newDocs = ['new-doc'], @newFiles = ['new-file'])

			@projectLocator.findElement = sinon.stub().callsArgWith(1, null, @entity = { _id: @entity_id, name:"oldname", rev:4 }, @path, @folder)
			@tpdsUpdateSender.moveEntity = sinon.stub()
			@ProjectModel.findOneAndUpdate = sinon.stub().callsArgWith(3, null, @project)
			@documentUpdaterHandler.updateProjectStructure = sinon.stub().yields()
