def METHOD_NAME(
    self, mock_client_provider, patched_click_get_current_context, patched_click_echo
):
    mock_client_provider.return_value.return_value.describe_stacks.side_effect = EndpointConnectionError(
        endpoint_url="https://cloudformation.test.amazonaws.com/"
    )
    with self.assertRaises(SamListError):
        with StackOutputsContext(
            stack_name="test", output="json", region="us-east-1", profile=None
        ) as stack_output_context:
            stack_output_context.run()