'L{SSHCommandClientEndpoint} uses the L{IReactorTCP} passed to it to
attempt a connection to the host/port address also passed to it.'

def test_destination(self):

    endpoint = SSHCommandClientEndpoint.newConnection(self.reactor, '/bin/ls    -l', self.user, self.hostname, self.port, password=self.password, knownHosts=self.knownHosts, ui=FixedResponseUI(False))
    factory = Factory()
    factory.protocol = Protocol
    endpoint.connect(factory)
    (host, port, factory, timeout, bindAddress) = self.reactor.tcpClients[0]
    self.assertEqual(self.hostname, networkString(host))
    self.assertEqual(self.port, port)
    self.assertEqual(1, len(self.reactor.tcpClients))
