'The ``Deferred`` returned by ``main_for_service`` fires once the
``Deferred`` returned by the service\'s ``stopService`` method fires.'

def test_fire_after_service_stop(self):

    async = Deferred()
    result = main_for_service(self.reactor, AsyncStopService(async))
    self._shutdown_reactor(self.reactor)
    async.callback(None)
    self.assertIs(None, self.successResultOf(result))
