'Starting the service starts a reconnecting TCP client to given host
and port which calls ``build_agent_client`` with the service when
connected.'

def test_start_service(self):

    service = self.service
    service.startService()
    (host, port, factory) = self.reactor.tcpClients[0][:3]
    protocol = factory.buildProtocol(None)
    self.assertEqual((host, port, factory.__class__, service.reconnecting_factory.__class__, service.reconnecting_factory.continueTrying, protocol.__class__, protocol.wrappedProtocol.__class__, service.running), (u'example.com', 1234, TLSMemoryBIOFactory, ReconnectingClientFactory, True, TLSMemoryBIOProtocol, AgentAMP, True))
