'Test if non-header bytes are passed to the wrapped protocol.'

def test_overflowBytesSentToWrappedProtocol(self):

    factory = HAProxyWrappingFactory(Factory.forProtocol(StaticProtocol))
    proto = factory.buildProtocol(address.IPv6Address('TCP', '::1', 8080))
    transport = StringTransportWithDisconnection()
    proto.makeConnection(transport)
    proto.dataReceived((self.IPV6HEADER + 'HTTP/1.1    /    GET'))
    self.assertEqual(proto.wrappedProtocol.data, 'HTTP/1.1    /    GET')
