'The wrapped C{Protocol}\'s C{dataReceived} will get called when our
C{_WrappingProtocol}\'s C{dataReceived} gets called.'

def test_wrappedProtocolDataReceived(self):

    wf = endpoints._WrappingFactory(TestFactory())
    p = wf.buildProtocol(None)
    p.makeConnection(None)
    p.dataReceived('foo')
    self.assertEqual(p._wrappedProtocol.data, ['foo'])
    p.dataReceived('bar')
    self.assertEqual(p._wrappedProtocol.data, ['foo', 'bar'])
