'Our L{_WrappingProtocol} should be an L{IHandshakeListener} if
the C{wrappedProtocol} is.'

def test_wrappingProtocolHandshakeListener(self):

    handshakeListener = TestHandshakeListener()
    wrapped = endpoints._WrappingProtocol(None, handshakeListener)
    self.assertTrue(interfaces.IHandshakeListener.providedBy(wrapped))
