'```AgentScript.main`` starts the service created by its
``service_factory`` .'

def test_main_starts_service(self):

    service = Service()
    agent = AgentScript(service_factory=(lambda reactor, options: service))
    agent.main(self.reactor, self.options)
    self.assertTrue(service.running)
