'Fake that connection was established for first connectTCP request made
on C{reactor}.
@param reactor: Reactor on which to fake the connection.
@type  reactor: A reactor.'

def makeTCPConnection(self, reactor):

    factory = reactor.tcpClients[0][2]
    connector = reactor.connectors[0]
    protocol = factory.buildProtocol(None)
    transport = StringTransport(peerAddress=connector.getDestination())
    protocol.makeConnection(transport)
