'L{ProcessMonitor.addProcess} takes an C{env} parameter that is passed to
L{IReactorProcess.spawnProcess}.'

def test_addProcessEnv(self):

    fakeEnv = {'KEY': 'value'}
    self.pm.startService()
    self.pm.addProcess('foo', ['foo'], uid=1, gid=2, env=fakeEnv)
    self.reactor.advance(0)
    self.assertEqual(self.reactor.spawnedProcesses[0]._environment, fakeEnv)
