'L{StreamServerEndpointService.stopService} calls C{stopListening} on
the L{IListeningPort} returned from its endpoint, returns the
C{Deferred} from stopService, and sets C{running} to C{False}.'

def test_stopService(self):

    self.svc.privilegedStartService()
    self.fakeServer.startedListening()
    self.svc.startService()
    result = self.svc.stopService()
    l = []
    result.addCallback(l.append)
    self.assertEqual(len(l), 0)
    self.fakeServer.stoppedListening()
    self.assertEqual(len(l), 1)
    self.assertFalse(self.svc.running)
