'L{_WrappingFactory.doStop} passes through to the wrapped factory\'s
C{doStop} method, allowing application-specific cleanup and logging.'

def test_doStop(self):

    factory = ClientFactory()
    factory.numPorts = 3
    wf = endpoints._WrappingFactory(factory)
    wf.doStop()
    self.assertEqual(2, factory.numPorts)
