'Our wrappedProtocol\'s connectionLost method is called when
L{_WrappingProtocol.connectionLost} is called.'

def test_wrappedProtocolConnectionLost(self):

    tf = TestFactory()
    wf = endpoints._WrappingFactory(tf)
    p = wf.buildProtocol(None)
    p.connectionLost('fail')
    self.assertEqual(p._wrappedProtocol.connectionsLost, ['fail'])
