async def test_run_async_with_valid_credentials(
      self, sample_function, credentials_config, mock_tool_context
  ):
    """Test successful tool execution with valid credentials.

    This tests the main happy path where credentials are available
    and the underlying function executes successfully.
    """
    tool = BigQueryTool(
        func=sample_function, credentials_config=credentials_config
    )

    # Mock the credentials manager to return valid credentials
    mock_creds = Mock(spec=Credentials)
    with patch.object(
        tool._credentials_manager,
        "get_valid_credentials",
        return_value=mock_creds,
    ) as mock_get_creds:

      result = await tool.run_async(
          args={"param1": "test_value"}, tool_context=mock_tool_context
      )

      mock_get_creds.assert_called_once_with(mock_tool_context)
      assert result["result"] == "Success with test_value"
      assert result["authenticated"] is True
Test successful tool execution with valid credentials.

    This tests the main happy path where credentials are available
    and the underlying function executes successfully.
    
tests/unittests/tools/bigquery/test_bigquery_tool.py