@Override
  public String getFailureMessage() {
    if (hasAccess()) {
      return StringUtils.EMPTY;
    }

    List<String> failedTablesList = new ArrayList<>(_failedTables);
    Collections.sort(failedTablesList); // Sort to make output deterministic
    return "Authorization Failed for tables: " + failedTablesList;
  }
@Test
  public void testGetFailureMessage() {
    TableAuthorizationResult result = new TableAuthorizationResult(Set.of("table1", "table2"));
    Assert.assertEquals(result.getFailureMessage(), "Authorization Failed for tables: [table1, table2]");
  }