def METHOD_NAME(self, mock_client):
    mock_client.return_value.describe_connections.side_effect = ClientError(
        {"Error": {"Code": "ResourceNotFoundException"}}, "DescribeConnection"
    )
    set_module_args({"connection_id": "dxcon-aaaabbbb"})
    with self.assertRaises(AnsibleFailJson) as exec_info:
        directconnect_confirm_connection.main()
    result = exec_info.exception.args[0]
    assert result["failed"] is True
    mock_client.return_value.describe_connections.assert_has_calls([call(connectionId="dxcon-aaaabbbb")])