'When a client connects, the service keeps a reference to the new
protocol and resets the delay.'

def test_clientConnected(self):

    clock = Clock()
    (cq, service) = self.makeReconnector(clock=clock)
    awaitingProtocol = service.whenConnected()
    self.assertEqual(clock.getDelayedCalls(), [])
    self.assertIdentical(self.successResultOf(awaitingProtocol), cq.applicationProtocols[0])
