def METHOD_NAME():
    (
        mock_native_cursor,
        mock_managed_cursor,
        _,
        _,
        mock_connection_hook_spec,
    ) = populate_mock_managed_cursor()
    mock_connection_hook_spec.db_connection_validate_operation.side_effect = Exception(
        "Validation exception"
    )
    with pytest.raises(Exception) as e:
        mock_managed_cursor.execute(_query)
    assert "Validation exception" == e.value.args[0]
    mock_native_cursor.execute.assert_not_called()