'If the wrapped protocol does not provide L{ILoggingContext}, the
wrapped protocol\'s class name is returned from
L{_WrappingProtocol.logPrefix}.'

def test_logPrefixDefault(self):

    class NoProtocol(object, ):
        pass
    factory = TestFactory()
    factory.protocol = NoProtocol
    wf = endpoints._WrappingFactory(factory)
    wp = wf.buildProtocol(None)
    self.assertEqual(wp.logPrefix(), 'NoProtocol')
