'``_send_state_to_connections`` logs a single LOG_SEND_CLUSTER_STATE
action and a LOG_SEND_TO_AGENT action for the remote calls to each of
its connections.'

@capture_logging(None)
def test_logging(self, logger):

    control_amp_service = build_control_amp_service(self)
    agent = FakeAgent()
    client = AgentAMP(Clock(), agent)
    server = LoopbackAMPClient(client.locator)
    control_amp_service.connected(server)
    control_amp_service._send_state_to_connections(connections=[server])
    assertHasAction(self, logger, LOG_SEND_CLUSTER_STATE, succeeded=True, endFields={'configuration': control_amp_service.configuration_service.get(), 'state': control_amp_service.cluster_state.as_deployment()})
    assertHasAction(self, logger, LOG_SEND_TO_AGENT, succeeded=True, startFields={'agent': server})
