def METHOD_NAME(self, mock_client):
    mock_client.return_value.describe_connections.return_value = {
        "connections": [
            {
                "connectionState": "ordering",
                "connectionId": "dxcon-fgq9rgot",
                "location": "EqSe2",
                "connectionName": "ansible-test-connection",
                "bandwidth": "1Gbps",
                "ownerAccount": "123456789012",
                "region": "us-west-2",
            }
        ]
    }
    mock_client.return_value.confirm_connection.return_value = [{}]
    set_module_args({"connection_id": "dxcon-fgq9rgot"})
    with self.assertRaises(AnsibleExitJson) as exec_info:
        directconnect_confirm_connection.main()
    result = exec_info.exception.args[0]
    assert result["changed"] is True
    mock_client.return_value.describe_connections.assert_has_calls(
        [
            call(connectionId="dxcon-fgq9rgot"),
            call(connectionId="dxcon-fgq9rgot"),
            call(connectionId="dxcon-fgq9rgot"),
        ]
    )
    mock_client.return_value.confirm_connection.assert_called_once_with(connectionId="dxcon-fgq9rgot")